Expand description
Native representation of JS Promise values.
This implementation differs from the traditional Rust DOM object, because the reflector is provided by SpiderMonkey and has no knowledge of an associated native representation (ie. dom::Promise). This means that native instances use native reference counting (Rc) to ensure that no memory is leaked, which means that there can be multiple instances of native Promise values that refer to the same JS value yet are distinct native objects (ie. address equality for the native objects is meaningless).
Structsยง
- Promise ๐
- Wait
ForAll ๐Fulfillment Handler - The fulfillment handler for the list of promises in https://webidl.spec.whatwg.org/#wait-for-all.
- Wait
ForAll ๐Rejection Handler - The rejection handler for the list of promises in https://webidl.spec.whatwg.org/#wait-for-all.
Enumsยง
- Native
Handler ๐Task
Constantsยง
- SLOT_
NATIVEHANDLER ๐ - SLOT_
NATIVEHANDLER_ ๐TASK - _IMPL_
DOMOBJECT_ ๐FOR_ Promise
Traitsยง
- Promise
Helper ๐ - Private helper to enable adding new methods to
Rc<Promise>
.
Functionsยง
- create_
native_ ๐handler_ function - do_
nothing_ ๐ โpromise_ executor - native_
handler_ ๐ โcallback - wait_
for_ ๐all - https://webidl.spec.whatwg.org/#wait-for-all
- wait_
for_ ๐all_ promise - https://webidl.spec.whatwg.org/#waiting-for-all-promise
Type Aliasesยง
- Wait
ForAll ๐Failure Steps - The failure steps of https://webidl.spec.whatwg.org/#wait-for-all
- Wait
ForAll ๐Success Steps - The success steps of https://webidl.spec.whatwg.org/#wait-for-all