-
Notifications
You must be signed in to change notification settings - Fork 45
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
Convert to async/await #101
Conversation
@reivilibre Looks like we need to do some CI updates before reviewing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per my previous comment.
This needs a rebase. 😄 |
Makes an awaitable, suitable for mocking an `async` function. | ||
This uses Futures as they can be awaited multiple times so can be returned | ||
to multiple callers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this would be a nice change to put into synapse so that we don't have to use side_effect + lambda
in a lot of places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Closes #100 .
Would like to know if I can avoid reverting to
defer
in the tests.Edit: would also be interested in having someone actually run this to check it works... the tests pass, at least.