Type Alias ThreadsafeFunctionCallJs

Source
pub type ThreadsafeFunctionCallJs = Option<unsafe extern "C" fn(env: Env, js_callback: Value, context: *mut c_void, data: *mut c_void)>;
Available on crate features sys and napi-4 only.
Expand description

Aliased Type§

enum ThreadsafeFunctionCallJs {
    None,
    Some(unsafe extern "C" fn(*mut Env__, *mut Value__, *mut c_void, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut Env__, *mut Value__, *mut c_void, *mut c_void))

Some value of type T.