pub unsafe extern "system" fn JsIdle(nextIdleTick: *mut c_uint) -> JsErrorCode
Tells the runtime to do any idle processing it need to do.
If idle processing has been enabled for the current runtime, calling JsIdle will
inform the current runtime that the host is idle and that the runtime can perform
memory cleanup tasks.
JsIdle can also return the number of system ticks until there will be more idle work
for the runtime to do. Calling JsIdle before this number of ticks has passed will do
no work.
Requires an active script context.
The next system tick when there will be more idle work to do. Can be null. Returns the
maximum number of ticks if there no upcoming idle work to do.
The code JsNoError if the operation succeeded, a failure code otherwise.