mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 04:52:22 +00:00
5f7841526f
``` 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. |
||
---|---|---|
.. | ||
AuthorizationManager.coffee | ||
ChannelManager.coffee | ||
ConnectedUsersManager.coffee | ||
DocumentUpdaterController.coffee | ||
DocumentUpdaterManager.coffee | ||
DrainManager.coffee | ||
Errors.coffee | ||
EventLogger.coffee | ||
HealthCheckManager.coffee | ||
HttpApiController.coffee | ||
HttpController.coffee | ||
RedisClientManager.coffee | ||
RoomManager.coffee | ||
Router.coffee | ||
SafeJsonParse.coffee | ||
SessionSockets.coffee | ||
Utils.coffee | ||
WebApiManager.coffee | ||
WebsocketController.coffee | ||
WebsocketLoadBalancer.coffee |