timonson
timonson3y ago

Why does Deno.serve not return a promise anymore?

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

Did you find this page helpful?