Skip to main content

CancelAsyncTasks

Function CancelAsyncTasks 

Source
pub unsafe extern "C" fn CancelAsyncTasks(cx: *mut JSContext)
Expand description

Cancel all cancellable async tasks. Some tasks may not be cancellable, and must be waited on through a call to JS::ShutdownAsyncTasks.

This will fire JSAsyncTaskFinished callbacks for cancelled tasks.