system.reactive - Are there any conventions on throwing exceptions from implementations of IObserver? -
i'm implementing iobserver.
are there conventions throwing exceptions iobserver?
can onnext or other method of implementation throw exceptions?
what should happen if exception thrown in onnext or oncompleted - should catch exceptions , call this.onerror(ex)?
what happen if onerror throws?
from previous discussions in rx forums, best practice if onnext throws, let bubble handled subscribe method, if user decides handle it, so.
actually answer not simple, can check out thread related question, here:
more closely related thread: what if exception thrown observer in onnext
Comments
Post a Comment