zng_var

Type Alias ResponderVar

source
pub type ResponderVar<T> = ArcVar<Response<T>>;
Expand description

Variable used to notify the completion of an async operation.

Use response_var to init.

Aliased Type§

struct ResponderVar<T>(/* private fields */);

Implementations§

source§

impl<T: VarValue> ResponderVar<T>

source

pub fn respond(&self, response: T)

Sets the one time response.

source

pub fn response_var(&self) -> ResponseVar<T>

Creates a ResponseVar linked to this responder.