timonson
timonson2y ago

Why does Deno.serve not return a promise anymore?

Doesn't this cause problems for error handling?
3 Replies
AapoAlas
AapoAlas2y 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
timonsonOP2y ago
Thanks! Should I await this promise or can I just ignore it?
ioB
ioB2y ago
you can just ignore it

Did you find this page helpful?