mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
b482a50299
```js Deno.serve(async (req) => { const { promise, resolve } = Promise.withResolvers<void>(); req.signal.addEventListener("abort", () => { resolve(); }); await promise; return new Response("Ok"); }); ``` |
||
---|---|---|
.. | ||
config | ||
ffi | ||
integration | ||
napi | ||
node_compat | ||
registry | ||
specs | ||
testdata | ||
unit | ||
unit_node | ||
util | ||
wpt | ||
Cargo.toml | ||
lib.rs | ||
README.md |