Bridge and structured errors
Python suspends for Dart callbacks. Errors retain their Python class and structured payload.
Loading worker…
Observed output
Events, files and structured errors
Runtime API
final runtime = await MontyRuntime.start(pool: pool, os: files.call,
externalModules: {'tools': tools});
final value = await runtime.execute('import tools\ntools.add(2, 3)').result;
await runtime.dispose();
await pool.close();Runtime code lives in lib/src/runtime/, bridge/, extensions/, host/ and os_call/. Core owns the engine, process pool and worker assets.
Engine examples and compatibility → dart_monty_core