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

#221 in Asynchronous

Download history 253/week @ 2023-11-01 124/week @ 2023-11-08 129/week @ 2023-11-15 200/week @ 2023-11-22 192/week @ 2023-11-29 192/week @ 2023-12-06 391/week @ 2023-12-13 372/week @ 2023-12-20 218/week @ 2023-12-27 513/week @ 2024-01-03 192/week @ 2024-01-10 374/week @ 2024-01-17 481/week @ 2024-01-24 899/week @ 2024-01-31 440/week @ 2024-02-07 731/week @ 2024-02-14

2,644 downloads per month
Used in 9 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