system.reactive - Rx: get first item, but throw exception when the second item arrives -


using rx observable stream, there effective way first item, complete source observable, throw exception if second item arrives? sounds not situation use rx for, there clever way handle it?

as far understand, violation of iobservable contract, specifies no items should arrive after either error or complete. basically, checking situation cannot (or should not) arise.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -