Module future

Source
Expand description

Some future utilities that work across environments. Future utils with a compatible API for native, non-std and wasm environments.

Functions§

block_on
Block until the future is completed and returns the result.
spawn_detached_fut
Spawns a future to run detached. This will use a thread on native, or the browser runtime on WASM. The returned JoinOnDrop will join the thread when it is dropped.

Type Aliases§

DynFut
A dynamically typed, boxed, future. Useful for futures that need to ensure they are not capturing any of their inputs.