DEV Community

Discussion on: All (or just most) of what you need to know about handling Promises

orivolfo profile image
Ori Volfovitch Author • Edited on

So why in your firstHandler example did you made the function to be async?

Thread Thread
efishtain profile image
efi shtain

If you use it elsewhere, and it is async, mark it as async.
only when I use anonymous function directly in the chain I won't mark methods with async unless I have to.