tomaka / rouille

Web framework in Rust
Apache License 2.0
1.12k stars 106 forks source link

Allow using `rouille`'s event loop to launch periodic tasks #277

Open tgross35 opened 1 year ago

tgross35 commented 1 year ago

Would it be possible to add an AIP for periodic tasks? It seems like it may be somewhat easy to tap into the main loop and dispatch a thread (either from the pool or a new one) on a set Duration.

This can be done independent of Rouille, but providing an integrated API would be nice to reuse some resources.