Function chakracore_sys::JsDisableRuntimeExecution [] [src]

pub unsafe extern "system" fn JsDisableRuntimeExecution(
    runtime: JsRuntimeHandle
) -> JsErrorCode

Suspends script execution and terminates any running scripts in a runtime. Calls to a suspended runtime will fail until JsEnableRuntimeExecution is called. This API does not have to be called on the thread the runtime is active on. Although the runtime will be set into a suspended state, an executing script may not be suspended immediately; a running script will be terminated with an uncatchable exception as soon as possible. Suspending execution in a runtime that is already suspended is a no-op. The runtime to be suspended. The code JsNoError if the operation succeeded, a failure code otherwise.