Skip to main content

Respond

Type Alias Respond 

Source
pub type Respond<R> = Box<dyn FnOnce(R) + Send>;
Expand description

Where a job hands its result: called at most once, from any thread, while the job runs or later. Dropping it uncalled drops the result.

Aliased Typeยง

pub struct Respond<R>(/* private fields */);