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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -