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
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
Обсуждают сегодня