D
Deno

help

Why does Deno.serve not return a promise anymore?

T.timonson7/5/2023
Doesn't this cause problems for error handling?
AAapoAlas7/6/2023
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.
T.timonson7/7/2023
Thanks! Should I await this promise or can I just ignore it?
IioB7/7/2023
you can just ignore it

Looking for more? Join the community!