Skip to main content

Factory

Type Alias Factory 

Source
pub(crate) type Factory = Arc<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

A member’s future factory: called once per run, so a restart builds a fresh future from the same captured state. Shared rather than boxed so a caller can clone it out from under the registry lock before invoking it.

Aliased Type§

pub(crate) struct Factory { /* private fields */ }