Skip to main content

Module executor

Module executor 

Source
Expand description

Deno executor implementation — handles V8 isolation and module execution.

§Architecture

Each invocation spawns a fresh OS thread with a dedicated single-threaded Tokio runtime. This sidesteps the “cannot call block_on inside a Tokio runtime” restriction while keeping V8 + its event loop on an uncontested thread.

The result is returned to the outer async context via a oneshot channel.

Structs§

ExecutionResult
Result returned from the blocking deno thread back to the async caller.

Functions§

run_in_dedicated_thread
Execute guest JavaScript inside a fresh JsRuntime + dedicated Tokio runtime.