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.