Module art

Source
Expand description

abstraction over both tokio and async-std, making it possible to use either based on a feature flag

Modules§

future
executor future abstractions
stream
executor stream abstractions

Structs§

TcpStream
A TCP stream between a local and a remote socket.

Traits§

AsyncReadExt
Extension methods for Read.
AsyncWriteExt
Extension methods for Write.

Functions§

async_block_on
Spawns a task and blocks the current thread on its result.
async_block_on_with_runtime
Spawns a task and blocks the current thread on its result.
async_sleep
Sleeps for the specified amount of time.
async_spawn
Spawns a task.
async_spawn_local
Spawns a task onto the thread-local executor.
async_timeout
Provides timeout with async_std that matches tokio::time::timeout
async_yield_now
Cooperatively gives up a timeslice to the task scheduler.
split_stream
Splits a TcpStream into reader and writer

Attribute Macros§

async_main
Enables an async main function.
async_test
Enables an async test function.