p-hennessy / Bolt

All the parts for building a Discord robot
https://docs.bolt.bot/
MIT License
8 stars 6 forks source link

Allow interval to not clobber itself #78

Open p-hennessy opened 5 years ago

p-hennessy commented 5 years ago

Right now the interval decorator can potentially clobber itself by running too quickly. The older run of the code may be happening while a new one is sent off.

Maybe add a exclusive option to the interval decorator so that the scheduler will not schedule if there is already a run of the same handler code currently being executed.