mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
5f7841526f20f9ea4f7f617bd4ecbf30e3a45872
``` result = Promise.all([<Promise that rejects eventually>]) # rejection 1 result.then () -> RoomEvents.emit(eventName) # rejection 2 result.catch (err) -> RoomEvents.emit(eventName, err) # handle r1 ``` As shown above, the second rejection remains unhandled. The fix is to chain the `.catch()` onto the `.then()` Promise.
Languages
JavaScript
61.6%
TypeScript
31.8%
SCSS
2.5%
Java
2%
Pug
0.7%
Other
1.2%