[go: up one dir, main page]

Module prelude

Module prelude 

Source
Expand description

A prelude for the agnostik crate.

Structs§

Agnostik
This struct doesn’t have any functionality. It’s only use is to have a nice API to create executors for different runtimes.

Traits§

AgnostikExecutor
and wait for a future to finish.
LocalAgnostikExecutor
This trait represents an executor that is capable of spawning futures onto the same thread.

Functions§

block_on
block_on will use the global executor instance, which is determined by the cargo features, to block until the given future has finished.
spawn
spawn will use the global executor instance, which is determined by the cargo features, to spawn the given future.
spawn_blocking
spawn_blocking will use the global executor instance, which is determined by the cargo features, to spawn the given blocking task.