3 unstable releases

0.1.1 Aug 14, 2023
0.1.0 Mar 9, 2023
0.0.5 Dec 2, 2021
0.0.3 Nov 30, 2021
0.0.1 Oct 18, 2021

#157 in Concurrency

Download history 680/week @ 2024-07-24 994/week @ 2024-07-31 977/week @ 2024-08-07 881/week @ 2024-08-14 843/week @ 2024-08-21 1037/week @ 2024-08-28 1405/week @ 2024-09-04 1375/week @ 2024-09-11 1150/week @ 2024-09-18 1563/week @ 2024-09-25 891/week @ 2024-10-02 777/week @ 2024-10-09 1169/week @ 2024-10-16 1116/week @ 2024-10-23 1514/week @ 2024-10-30 1012/week @ 2024-11-06

4,935 downloads per month
Used in 13 crates (12 directly)

MIT/Apache

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