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

#94 in Concurrency

Download history 412/week @ 2024-01-03 137/week @ 2024-01-10 281/week @ 2024-01-17 405/week @ 2024-01-24 815/week @ 2024-01-31 369/week @ 2024-02-07 599/week @ 2024-02-14 543/week @ 2024-02-21 495/week @ 2024-02-28 363/week @ 2024-03-06 254/week @ 2024-03-13 511/week @ 2024-03-20 927/week @ 2024-03-27 747/week @ 2024-04-03 663/week @ 2024-04-10 764/week @ 2024-04-17

3,225 downloads per month
Used in 10 crates

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

~725KB
~14K SLoC