Expand description
abstraction over both tokio
and async-std
, making it possible to use either based on a feature flag
Modules§
Structs§
- TcpStream
- A TCP stream between a local and a remote socket.
Traits§
- Async
Read Ext - Extension methods for
Read
. - Async
Write Ext - 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 matchestokio::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.