Skip to main content

SpawnFn

Type Alias SpawnFn 

Source
pub type SpawnFn = Box<dyn Fn() -> Pin<Box<dyn Future<Output = SageResult<()>> + Send>> + Send>;
Expand description

A spawn function that creates an agent and returns its join handle.

Aliased Typeยง

pub struct SpawnFn(/* private fields */);