timonson
timonson15mo ago

Why does Deno.serve not return a promise anymore?

Doesn't this cause problems for error handling?
3 Replies
AapoAlas
AapoAlas15mo ago
It returns it in an object property so as to make room for returning other things in the object as well, mainly a cancel / stop callback.
timonson
timonson15mo ago
Thanks! Should I await this promise or can I just ignore it?
ioB
ioB15mo ago
you can just ignore it