mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
3d6fa64f19
This commit adds support for unstable FFI callbacks. A callback is registered using the `Deno.UnsafeCallback` API. The backing memory for the callback can be disposed of using `Deno.UnsafeCallback#close`. It is not safe to pass the callback after calling close. Callbacks from other than the isolate thread are not supported. Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com> Co-authored-by: Bert Belder <bertbelder@gmail.com>
5 lines
113 B
JavaScript
5 lines
113 B
JavaScript
Deno.core.opAsync("op_ffi_call_ptr_nonblocking", 0n, {
|
|
name: null,
|
|
parameters: [],
|
|
result: "void",
|
|
}, []);
|