Returns false from both enqueue methods, which
MessageQueue defines as "the follow-up work was not
scheduled" rather than as a failure — so a caller keeps succeeding at the
thing it was actually asked to do and decides for itself whether the missed
follow-up is worth a log line.
Worth being deliberate about: swapping this in silently drops background
work. That is correct when the work is genuinely optional, and wrong when a
queued message is the only record that something must happen later.
A queue that accepts nothing.
Remarks
Returns
falsefrom both enqueue methods, whichMessageQueuedefines as "the follow-up work was not scheduled" rather than as a failure — so a caller keeps succeeding at the thing it was actually asked to do and decides for itself whether the missed follow-up is worth a log line.Worth being deliberate about: swapping this in silently drops background work. That is correct when the work is genuinely optional, and wrong when a queued message is the only record that something must happen later.
Author
Bayu Dwiyan Satria
Version
1.0.0
Since
1.0.0