Function js::jsapi::SetEnqueuePromiseJobCallback
[−]
[src]
pub unsafe extern "C" fn SetEnqueuePromiseJobCallback(
rt: *mut JSRuntime,
callback: JSEnqueuePromiseJobCallback,
data: *mut c_void
)
Sets the callback that's invoked whenever a Promise job should be enqeued.
SpiderMonkey doesn't schedule Promise resolution jobs itself; instead,
using this function the embedding can provide a callback to do that
scheduling. The provided callback
is invoked with the promise job,
the corresponding Promise's allocation stack, and the data
pointer
passed here as arguments.