Expand description
A generic, safe mechanism by which Promise objects can be pinned and transferred between threads (or intra-thread for asynchronous events). See more information in script_bindings::refcounted
Structsยง
- Live
Promise ๐References - The set of live, pinned DOM objects that are currently prevented from being garbage collected due to outstanding references.
- Trusted ๐
- A safe wrapper around a raw pointer to a DOM object that can be
shared among threads for use in asynchronous operations. The underlying
DOM object is guaranteed to live at least as long as the last outstanding
Trusted<T>instance. - Trusted
Promise - A safe wrapper around a DOM Promise object that can be shared among threads for use
in asynchronous operations. The underlying DOM object is guaranteed to live at least
as long as the last outstanding
TrustedPromiseinstance. These values cannot be cloned, only created from existingRc<Promise>values.
Constantsยง
Functionsยง
- trace_
refcounted_ ๐ โobjects - A JSTraceDataOp for tracing reflectors held in LIVE_REFERENCES