Modules
mpmc synchronized channel implementation
support an unbounded mpmc queue, senders would not block
receivers would block if there is no data until sender send data
it’s almost the same as
mpsc
except that we support multi receivers
each receiver would consume one data each time so that other receivers
would not see that the same data any morecompatible with std::sync::mpsc except for both thread and coroutine
please ref the doc from std::sync::mpsc
provide single consumer single producer channel
Structs
A reader-writer lock
Semphore primitive
SyncFlag primitive
A type indicating whether a timed wait on a condition variable returned
due to a time out or not.