-
Notifications
You must be signed in to change notification settings - Fork 6
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
Built-in timers/intervals #14
Comments
Would this mean something more involved than |
I think it mostly means being able to run actors at a repeated interval (to rephrase, send them messages at a fixed interval), or send a message after a specified timeout without blocking any threads. Async runtimes would definitely be helpful here. |
Async runtimes basically just run a separate timer thread that usually uses the Timing Wheels architecture. See: https://docs.rs/tokio-timer/0.2.13/tokio_timer/timer/struct.Timer.html I guess it would be a matter of us deciding if we wanted to (possibly behind a feature flag) implement or import a timer thread that could send messages at delays or intervals. |
Some resources that will be helpful here: https://github.com/tokio-rs/tokio/tree/master/tokio-util/src/time |
This reverts commit 6495dbb, as planned in #14 (comment) Note that this also reverts the version bump from 0.4.1 to 0.5.0. That will be fixed in the next commit.
This reverts commit 6495dbb, as planned in #14 (comment) Note that this also reverts the version bump from 0.4.1 to 0.5.0. That will be fixed in the next commit.
#53 has been merged, but per comments therein we still want to introduce a helper actor + an ergonomic API on top of it. I'll open a PR to iterate that. |
See module level docs and `delay_actor.rs` example for info. Closes #14. Builds on the fact that actors can now customize their context.
See module level docs and `delay_actor.rs` example for info. Closes #14. Builds on the fact that actors can now customize their context.
See module level docs and `delay_actor.rs` example for info. Closes #14. Builds on the fact that actors can now customize their context.
See module level docs and `delay_actor.rs` example for info. Closes #14. Builds on the fact that actors can now customize their context. v2: implement Deref, take factory instead of requiring Clone.
See module level docs and `delay_actor.rs` example for info. Closes #14. Builds on the fact that actors can now customize their context. v2: implement Deref, take factory instead of requiring Clone.
See module level docs and `delay_actor.rs` example for info. Closes #14. Builds on the fact that actors can now customize their context. v2: implement Deref, take factory instead of requiring Clone.
Do we want??
The text was updated successfully, but these errors were encountered: