Function script::dom::bindings::import::module::jsapi::JS::JobQueueMayNotBeEmpty

source ยท
pub unsafe extern "C" fn JobQueueMayNotBeEmpty(cx: *mut JSContext)
Expand description

Inform the runtime that job queue is no longer empty. The runtime can now no longer skip creating promise jobs for asynchronous execution, because pending jobs in the job queue must be executed first to preserve the FIFO (first in - first out) property of the queue. This effectively undoes JobQueueIsEmpty and re-enables the standard job queuing behavior.

This function must be called whenever enqueuing a job to the job queue when JobQueueIsEmpty was called previously.