#Async Unsafe Callback?
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
Is it possible to create a unsafe callback on a async function?
I need the native program to wait for a response from async function before continuing!
const cb = new Deno.UnsafeCallback(
{
parameters: ["pointer"],
result: "i32"
} as const,
async (L: Deno.PointerValue) => {
}
)
Somthing like this!
No, this is not possible as it would (in the general case) require cooperation from the caller.