amberjs 1.17.0

JavaScript/TypeScript runtime built with Rust and V8
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Node.js `worker_threads` module.
//! Real multi-isolate Workers are provided by `crate::web_api::worker_host`.

use anyhow::Result;
use rusty_v8 as v8;

pub fn setup_worker_threads_api(
    scope: &mut v8::ContextScope<v8::HandleScope>,
    context: &v8::Local<v8::Context>,
) -> Result<()> {
    crate::web_api::worker_host::setup_worker_host_api(scope, context)
}