Crate deno_unsync

Source

Modules§

future
mpsc
sync

Structs§

Flag
A flag with interior mutability that can be raised or lowered. Useful for indicating if an event has occurred.
IOReadHalf
IOWriteHalf
JoinHandle
Equivalent to tokio::task::JoinHandle.
JoinSet
Wraps the tokio JoinSet to make it !Send-friendly and to make it easier and safer for us to poll while empty.
MaskFutureAsSend
TaskQueue
A queue that executes tasks sequentially one after the other ensuring order and that no task runs at the same time as another.
TaskQueuePermit
A permit that when dropped will allow another task to proceed.
TaskQueuePermitAcquireFuture
UnsendMarker
Marker for items that are ![Send].
UnsyncWaker
A ![Sync] and ![Sync] equivalent to AtomicWaker.

Functions§

spawn
Equivalent to tokio::task::spawn, but does not require the future to be Send. Must only be used on a RuntimeFlavor::CurrentThread executor, though this is only checked when running with debug assertions.
spawn_blocking
Equivalent to tokio::task::spawn_blocking. Currently a thin wrapper around the tokio API, but this may change in the future.
split_io
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.