[][src]Crate smol_potat

Re-exports

pub use num_cpus;

Modules

future

Combinators for the Future trait.

io

Tools and combinators for I/O.

prelude

Async traits and their extensions.

stream

Combinators for the Stream trait.

Macros

pin

Pins a variable of type T on the stack and rebinds it as Pin<&mut T>.

ready

Unwraps Poll<T> or returns Pending.

unblock

Runs blocking code on a thread pool.

Structs

Async

Async I/O.

Task

A spawned future.

Timer

A timer that expires after a duration of time.

Unblock

Runs blocking I/O on a thread pool.

Functions

block_on

Starts a thread-local executor and then runs the future.

run

Starts a thread-local and a multi-threaded executor and then runs the future.

Attribute Macros

bench

Enables an async benchmark function.

main

Enables an async main function.

test

Enables an async test function.