- Breaking: Duplication prevention: when
add
is called with a task that has anid
equal to theid
of a pending or in-flight tasks, the task will not be added to the queue.- Equality is checked with
===
, soid
s should be primitives. - This implies that only one task with undefined
id
can be in the queue at a time, essentially makingid
a required field.
- Equality is checked with