deno
deno copied to clipboard
Reading from Deno.stdin prevent Exception being thrown
Version: Deno 1.38.4 Reading from stdin prevents Exception being thrown;
setTimeout(() => {
throw new Error("this will not fire!")
}, 100);
const buffer = new Uint8Array(1024);
await Deno.stdin.read(buffer);