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

Introduce SendFuture::repeat_every #125

Open
thomaseizinger opened this issue Jul 14, 2022 · 3 comments
Open

Introduce SendFuture::repeat_every #125

thomaseizinger opened this issue Jul 14, 2022 · 3 comments

Comments

@thomaseizinger
Copy link
Collaborator

thomaseizinger commented Jul 14, 2022

Extracted out of #71.

This should be introduced via an extension crate to not grow the core API of xtra unnecessarily.

It is important that this must work only on Handlers that return (). That is also the main reason for providing this functionality to users and not telling them to write it themselves. It is a potential footgun to drop that return value.

@Restioson

This comment was marked as outdated.

@thomaseizinger

This comment was marked as outdated.

@Restioson

This comment was marked as outdated.

@thomaseizinger thomaseizinger changed the title Replace Context::notify_interval with SendFuture::repeat_every Introduce SendFuture::repeat_every Jul 16, 2022
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

2 participants