We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201fc59 commit 7f171daCopy full SHA for 7f171da
src/content/docs/workers/runtime-apis/nodejs/timers.mdx
@@ -20,8 +20,8 @@ import timers from "node:timers";
20
export default {
21
async fetch(): Promise<Response> {
22
console.log("first");
23
- const { promise: promise1, resolve: resolve1 } = Promise.withResolvers();
24
- const { promise: promise2, resolve: resolve2 } = Promise.withResolvers();
+ const { promise: promise1, resolve: resolve1 } = Promise.withResolvers<void>();
+ const { promise: promise2, resolve: resolve2 } = Promise.withResolvers<void>();
25
timers.setTimeout(() => {
26
console.log("last");
27
resolve1();
0 commit comments