Hello, is this pattern ok, or are there problems?async ()=>{let obj = await somedbcall();if(somecondition) {throw new Error('some error occurred');}}Is it ok to explicitely throw errors with the throw keyword inside async functions? If no, why?
Submitted December 18, 2018 at 11:53AM by honestserpent
No comments:
Post a Comment