Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix a race condition in DefaultPromise #2186
.. which occurs when a user adds a listener from different threads after the promise is done and the notifications for the listeners, that were added before the promise is done, is in progress. For instance:
taskNotifyListenerB should not really notify listenerB until taskNotifyListenerA is finished.
To fix this issue:
 the listeners that were added before the promise is done