Skip to main content

SharedPromise

Type Alias SharedPromise 

Source
pub type SharedPromise = Rc<RefCell<RPromise>>;
Expand description

Shared promise handle — promises are mutable (cached once forced) and may be referenced from multiple places (e.g. ... forwarding), so they live behind Rc<RefCell<>>.

Aliased Type§

pub struct SharedPromise { /* private fields */ }