|Aug 14, 2023
|Mar 9, 2023
|Dec 2, 2021
#221 in Asynchronous
2,644 downloads per month
Used in 9 crates
Local-sync is a crate providing data structures for sync within the local thread.
Mpsc includes bounded and unbounded channel.
Once cell like once in golang.
Oneshot channel which can be send and receive data only one time. Also, it can be used as a notification method.
You can async wait permits and add permits with Semaphore.
Local-sync is licensed under the MIT license or Apache license.
During developing we referenced a lot from Tokio. We would like to thank the authors of the projects.
Local Sync is a crate that providing non-thread-safe data structures useful for async programming. If you use a runtime with thread-per-core model(for example the Monoio), you may use this crate to avoid the cost of communicating across threads.