Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CancellablePromise bridge initializer should run 'catch' on CurrentThreadDispatcher() #1050

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

dougzilla32
Copy link
Collaborator

Fix for #1049: "Some tests seem to depend on dispatching that PromiseKit should perhaps not be doing"

Yup, CancellablePromise is definitely doing some dispatching that it shouldn't be doing. Fixed exactly as Garth suggests, by having the CancellablePromise bridge initializer run 'catch' on CurrentThreadDispatcher().

Also updating 6 affected tests for this change.

…iseKit should perhaps not be doing

The cancellable promise bridge now runs 'catch' on the current thread dispatcher.

Updated tests for the change.
@GarthSnyder
Copy link
Collaborator

Looks awesome, Doug - thanks for taking a look at this!

@GarthSnyder GarthSnyder merged commit a8f2e9b into mxcl:v7 Apr 24, 2019
@GarthSnyder
Copy link
Collaborator

There's a 7.0.0-alpha3 tag at the previous head which I didn't move or supersede.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants