job_sequencer 1.2.0
job_sequencer: ^1.2.0 copied to clipboard
Manages sequential job execution, ensuring jobs run in order, crucial for ordered task processing.
1.2.0 #
- Added
JobSequencerTimer
class - a timer-based implementation that uses a periodic timer to check for jobs, eliminating race conditions. - Fixed
_tryExecuteJobs()
to properly await inJobSequencer
class.
1.1.1 #
- Fixed
reset()
to properly clear running job indexes, preventing stale state from affecting subsequent job execution. - Fixed bug where running jobs would increment the internal index after
reset()
was called, making the class execute jobs out of order in some cases.
1.1.0 #
- Added
getNextIndex()
method to retrieve the next job index without adding a job.
1.0.0 #
- Initial version.