Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Add method to forward time until all timers are expired #51

Merged

Conversation

jpicht
Copy link
Contributor

@jpicht jpicht commented Mar 17, 2023

Hi, thanks for this great library!

This PR introduces a method to automatically forward time until past all timers.

A colleague of mine found this library and I immediately replaced my (bad) custom solution with this package. I have a test case though, where I do not know the length and number of timers that the workers have set internally (multiple workers working the same queue with heuristic back off). At one point in that test case I need to forward time until no timers remain active.

Copy link
Collaborator

@djmitche djmitche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@djmitche djmitche merged commit 2fbf0cb into benbjohnson:master Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants