Replies: 1 comment
-
I'm pretty sure it's cloned no matter what. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I just have a question regarding the broadcaster's move/clone semantics.
When there are multiple receivers, the value has to be cloned for each receiver. This makes 100% sense to me. In the scenario that there is only one receiver, is the value still cloned? If yes, could this value rather not be moved as an optimization?
I realize the answer to this question will probably be along the lines of "in that case, use a normal channel". But in my use-case it makes sense to move when possible and clone when there are more than one receivers.
Beta Was this translation helpful? Give feedback.
All reactions