Skip to main content

runtime_gate

Function runtime_gate 

Source
pub fn runtime_gate() -> Result<RuntimeGate, FfiError>
Expand description

Returns the active runtime gate if the pool is initialized.

FFI entry points use this to refuse work rather than implicitly start the runtime.

ยงErrors

Returns FfiError::RuntimeUninitialized if ensure_runtime has not been called yet on this process.