Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

[2.x] Ensure promises run one-after-another #544

Merged
merged 2 commits into from Sep 19, 2020
Merged

[2.x] Ensure promises run one-after-another #544

merged 2 commits into from Sep 19, 2020

Conversation

rennokki
Copy link
Collaborator

@rennokki rennokki commented Sep 19, 2020

I assume some errors caused by the presence channel users list is because the promises are running all at the same time and they don't get time to finish previous tasks (like putting the users in Redis then retrieving them later when joining the presence channel)

This PR adds support for channel manager's functions to always return promises so that during the business logic in controllers and handlers, they will be executed in order.

@rennokki rennokki changed the base branch from master to 2.x September 19, 2020 11:17
@rennokki rennokki merged commit 1f6e714 into 2.x Sep 19, 2020
@rennokki rennokki deleted the feature/promises branch September 19, 2020 12:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant