Skip to content

chore: properly template the Then promise helper - #17050

Merged
codebytere merged 1 commit into
masterfrom
template-then-helper
Feb 19, 2019
Merged

codebytere merged 1 commit into
masterfrom
template-then-helper

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

We can't pass a base::Closure into the Promise util Then helper because that assumes a callback with no parameters or no unbound parameters, and more often than not the passed callback will have several unbound parameters. We thus need to template this helper with the ReturnType and ArgTypes.

cc @MarshallOfSound

Checklist

Release Notes

Notes: none

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codebytere
codebytere merged commit cc5ed24 into master Feb 19, 2019
@release-clerk

release-clerk Bot commented Feb 19, 2019

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Feb 19, 2019

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "5-0-x", please check out #17058

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