Похожие чаты

Yes you do, ` async func () { const data = await

otherfunc()
const other data = await anotherfunc()
}
`
in this casce you have to do a try catch for each await and later on

`
func.
then()
.then()
.catch()
.catch()
`

this video explains the benefits of not having to use try catch and instead return a promise that always resolves
https://www.youtube.com/watch?v=0iiZHlT0boc

5 ответов

6 просмотров

in this casce you have to do a try catch for each await No

this video explains the benefits of not having to use try catch and instead return a promise that always resolves That's a drawback, not a benefit, you loose context

Marked this youtuber as ubernoob

hah, this is like Fuse's ad-hoc monads

Wow... just wow

Похожие вопросы

Обсуждают сегодня

Карта сайта