3 unstable releases
0.1.1 | Aug 14, 2023 |
---|---|
0.1.0 | Mar 9, 2023 |
0.0.5 | Dec 2, 2021 |
0.0.3 |
|
0.0.1 |
|
#157 in Concurrency
4,935 downloads per month
Used in 13 crates
(12 directly)
110KB
2K
SLoC
local-sync
Local-sync is a crate providing data structures for sync within the local thread.
mpsc
Mpsc includes bounded and unbounded channel.
Once Cell
Once cell like once in golang.
Oneshot
Oneshot channel which can be send and receive data only one time. Also, it can be used as a notification method.
Semaphore
You can async wait permits and add permits with Semaphore.
Licenses
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.
lib.rs
:
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.
Dependencies
~540–720KB
~14K SLoC