pub fn compile_source_with_cancel(
source: &str,
options: &CompileOptions,
cancel: Option<Arc<AtomicBool>>,
) -> Result<BytecodeChunk, CompileError>Expand description
Cancellation-aware form of compile_source.
ยงErrors
As compile_source, plus CompileErrorKind::Cancelled when the flag is
set at a cooperative compiler safepoint.