Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在等待流中的特定值,此时,我想在订阅者中做一些工作,并取消订阅正在进行的流。这样做的最佳语法是什么?
像这样的东西:
var value = stream.Where(/* predicate to select value of interest */) .Take(1) .Subscribe(value => /* do work */);