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

figure out how to work with temporal streams too #14

Open
yoshuawuyts opened this issue Jan 8, 2022 · 3 comments
Open

figure out how to work with temporal streams too #14

yoshuawuyts opened this issue Jan 8, 2022 · 3 comments

Comments

@yoshuawuyts
Copy link
Collaborator

yoshuawuyts commented Jan 8, 2022

Screenshot_20220108-235531

Screenshot_20220108-235822

@yoshuawuyts
Copy link
Collaborator Author

We need to distinguish between a deadline and a boundary. Deadlines are hit exactly once. Boundaries can be hit multiple times.

@yoshuawuyts
Copy link
Collaborator Author

yoshuawuyts commented Jan 8, 2022

Maybe we should rename {AsyncIter, Future}::until with:

  • AsyncIter::timeout takes impl Boundary
  • AsyncIter::timeout_at takes impl Deadline
  • Future:timeout takes impl Boundary
  • Future::timeout_at takes impl Deadline

note: timeout_at takes StopToken, Instant, and possibly SystemTime.

@yoshuawuyts
Copy link
Collaborator Author

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

No branches or pull requests

1 participant