How does async-broadcast differ from async-channel?
kennetpostigo opened this issue Β· comments
Hi π,
Whats the difference between async-broadcast
and async-channel
? Sorry if this is obvious, it just isn't immediately apparent to me
Hi,
Whats the difference between
async-broadcast
andasync-channel
?
The former sends every receiver a copy (clone actually) of the message and hence requires Clone
implementation from the message type, while the latter only delivers the sent message to one of the receivers and hence doesn't require Clone
.
Sorry if this is obvious, it just isn't immediately apparent to me
Don't blame you. I myself was first confused before async-broadcast
. I actually thought I compared them in the docs+README but seems I didn't in the end. I'll keep this open till I fix that.