pub fn pending_promise_with_resolver() -> (Value, Value)Expand description
Promise.withResolvers() — a fresh pending promise paired with its own
resolve/reject continuations (the same @@presolve/@@preject thunks the
executor receives), returned as a plain { promise, resolve, reject } object.
A fresh pending promise paired with the thunk that resolves it, for stdlib
callers that hand the resolver to an event listener.