summaryrefslogtreecommitdiff
path: root/ext/node/polyfills
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-19 02:59:23 +0200
committerGitHub <noreply@github.com>2023-05-19 02:59:23 +0200
commit5b0752234993ee69e47c32db478d2a296f73f396 (patch)
tree6501e364a82d6ff98845d87fe38744bda7fd1a70 /ext/node/polyfills
parent8724ba9d084127147e2bb2c997a6bf2f38c9b3d2 (diff)
BREAKING(unstable): change return type of Deno.serve() API (#19189)
This commit changes the return type of an unstable `Deno.serve()` API to instead return a `Deno.Server` object that has a `finished` field. This change is done in preparation to be able to ref/unref the HTTP server.
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r--ext/node/polyfills/http.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index adc5845b5..065ad2e0f 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -1577,7 +1577,7 @@ class ServerImpl extends EventEmitter {
this.emit("listening");
},
},
- ).then(() => this.#servePromise!.resolve());
+ ).finished.then(() => this.#servePromise!.resolve());
}
setTimeout() {