private void sendBlockedMessages() {
        long timeout = SystemTimer.adjustTimeoutByDetectedHz(Duration.ofMillis(10)).toMillis();
        while (! destroyed.get()) {
            for (SendBlockedMessages sender : blockedSenders.keySet()) {
                if (!sender.trySend()) {
                    blockedSenders.remove(sender);
                }
            }
            try {
                Thread.sleep(timeout);
            } catch (InterruptedException e) {
                return;
            }
        }
    }
Do what you want, but dont block.
You will be called regularly until you signal you are done
@return true unless you are done
messagebus/src/main/java/com/yahoo/messagebus/MessageBus.java