Crate deno_unsync
source ·Modules§
Structs§
- A flag with interior mutability that can be raised or lowered. Useful for indicating if an event has occurred.
- Equivalent to
tokio::task::JoinHandle
. - Wraps the tokio
JoinSet
to make it !Send-friendly and to make it easier and safer for us to poll while empty. - A queue that executes tasks sequentially one after the other ensuring order and that no task runs at the same time as another.
- A permit that when dropped will allow another task to proceed.
- Marker for items that are ![
Send
]. - A ![
Sync
] and ![Sync
] equivalent toAtomicWaker
.
Functions§
- Equivalent to
tokio::task::spawn
, but does not require the future to beSend
. Must only be used on aRuntimeFlavor::CurrentThread
executor, though this is only checked when running with debug assertions. - Equivalent to
tokio::task::spawn_blocking
. Currently a thin wrapper around the tokio API, but this may change in the future. - Create a ![
Send
] I/O split on top of a stream. The split reader and writer halves are safe to use only in a single-threaded context, and are not legal to send to another thread.