put method
Used to put message
on the buffer. The put will be handled using the
following rules
- If the channel is closed, then the put will have no effect.
- If there are pending takers, then invoke the oldest taker with the
message
. - Otherwise put the
message
on the underlying buffer
Implementation
@override
void put(T message) {
if (isSagaDispatchedAction(message)) {
super.put(message);
return;
}
asap(() {
super.put(message);
});
}