pub struct PromiseAllSharedState {
pub remaining: Cell<usize>,
pub results: RefCell<Vec<JsValue>>,
pub result_promise: JsObjectRef,
pub rejected: Cell<bool>,
}Expand description
Shared state for Promise.all tracking This is shared across all handlers via Rc
Fields§
§remaining: Cell<usize>Number of promises still pending
results: RefCell<Vec<JsValue>>Results array (indexed by original position)
result_promise: JsObjectRefThe result promise to fulfill when all complete
rejected: Cell<bool>Whether any promise has already rejected
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more