Crate local_sync

Source
Expand description

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.

Modules§

mpsc
oneshot
Oneshot borrowed from tokio.
semaphore
Semaphore borrowed from tokio.

Structs§

OnceCell
A thread-safe cell that can be written to only once.

Enums§

SetError
Errors that can be returned from OnceCell::set.