-
Hi everyone , The result is that the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
var ac = new TransformBlock<int, int>(i => i * 2);
var ac2 = new ActionBlock<int>(i => { });
ac.LinkTo(ac2, new DataflowLinkOptions { PropagateCompletion = true });
ac.Post(10);
ac.Post(12);
ac.Complete();
await ac2.Completion; |
Beta Was this translation helpful? Give feedback.
PropagateCompletion
works the other way around: you completeac
and then wait forac2
to complete: