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

feat: adaptors between notifiers and async iterables #1340

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

erights
Copy link
Member

@erights erights commented Jul 28, 2020

An adapter from notifiers to async iterables.

An adapter from async iterables to notifiers.

notifiers are also async iterables.

Replaces #1334 but based on current master rather than branch remove-legacy-from-notifier

I'm rearranging this so the async iterable adaptors can proceed before we remove legacy support, since the removal entails inter-repository coordination.

@erights
Copy link
Member Author

erights commented Jul 28, 2020

Of @Chris-Hibbert 's review comments on #1334 , have yet to:

  • add asyncIterator to getUpdateSince() as a method of Notifier
  • Please add type annotations. (@michaelfig would probably be happy to help.)

@michaelfig I'm adding you as reviewer, but really seeking this help. Thanks.

Also, I need to add tests of the async iterable functionality.

@erights erights force-pushed the async-iterable-notifier branch 2 times, most recently from 5150595 to 24627e0 Compare July 29, 2020 01:23
@erights
Copy link
Member Author

erights commented Jul 29, 2020

@michaelfig and I will be meeting so he can get me started on the typing. Aside from that, this PR is ready for review, so I'm hitting the button ;)

@erights erights marked this pull request as ready for review July 29, 2020 02:23
@erights erights force-pushed the async-iterable-notifier branch from 24627e0 to 2f95803 Compare July 29, 2020 03:08
@erights erights marked this pull request as draft July 29, 2020 04:06
@erights
Copy link
Member Author

erights commented Jul 29, 2020

Back to draft while I fix a bug.

@erights erights force-pushed the async-iterable-notifier branch from 2f95803 to 2dfa829 Compare July 29, 2020 04:32
@erights erights marked this pull request as ready for review July 29, 2020 04:38
Copy link
Contributor

@Chris-Hibbert Chris-Hibbert left a comment

Choose a reason for hiding this comment

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

Looks good.

@erights erights force-pushed the async-iterable-notifier branch from c1d983e to 1bac700 Compare July 30, 2020 19:00
@erights erights force-pushed the async-iterable-notifier branch from 1bac700 to eb08d1c Compare July 30, 2020 19:01
@erights erights merged commit b67d21a into master Jul 30, 2020
@erights erights deleted the async-iterable-notifier branch July 30, 2020 19:57
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.

3 participants