Module runtime

Source
Expand description

Async event loop support.

The way to use this is to call block_on(). Inside the future, Reactor::current will give an instance of the Reactor running the event loop, which can be to AsyncPollable::wait_for instances of wasi::Pollable. This will automatically wait for the futures to resolve, and call the necessary wakers to work.

Structs§

AsyncPollable
An AsyncPollable is a reference counted Registration. It can be cloned, and used to create as many WaitFor futures on a Pollable that the user needs.
Reactor
Manage async system resources for WASI 0.2
WaitFor
A Future that waits for the Pollable’s readiness.

Functions§

block_on
Start the event loop