Right now, if you queue a task, and then right after the task is finished you queue another task, it will wait exactly 1 second before doing the second task (if only these 2 tasks are queued).
Either this could be set as configurable, or there could be a channel or an atomic bool or some notifying mechanism (eg. isNewTaskAvailable) so that the wait of 1s isn't needed, but instead there is a notification mechanism.
Right now, if you queue a task, and then right after the task is finished you queue another task, it will wait exactly 1 second before doing the second task (if only these 2 tasks are queued).
Either this could be set as configurable, or there could be a channel or an atomic bool or some notifying mechanism (eg. isNewTaskAvailable) so that the wait of 1s isn't needed, but instead there is a notification mechanism.