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

Convert to async/await #101

Merged
merged 11 commits into from
Sep 2, 2020
Merged

Convert to async/await #101

merged 11 commits into from
Sep 2, 2020

Conversation

reivilibre
Copy link
Contributor

@reivilibre reivilibre commented Aug 21, 2020

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.

@reivilibre reivilibre requested a review from a team August 21, 2020 17:59
@clokep clokep self-assigned this Aug 24, 2020
@clokep
Copy link
Member

clokep commented Aug 24, 2020

@reivilibre Looks like we need to do some CI updates before reviewing this.

Copy link
Member

@clokep clokep left a 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.

@clokep
Copy link
Member

clokep commented Aug 28, 2020

This needs a rebase. 😄

tests/test_ad.py Outdated Show resolved Hide resolved
tests/test_simple.py Outdated Show resolved Hide resolved
Comment on lines +198 to +200
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.
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

reivilibre and others added 3 commits September 2, 2020 13:02
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>
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.

Make async/await
2 participants