We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, would it be possible to have a new rule that checks if emitter.isDIsposed() is called before publishing an update? For cases like below:
emitter.isDIsposed()
Maybe.create((MaybeOnSubscribe<LatLng>) emitter -> { LatLng coordinates = null; try { coordinates = computeCoordinates(); if (!emitter.isDisposed()) { if (coordinates != null) { emitter.onSuccess(coordinates); } else { emitter.onComplete(); } } } catch (final Exception e) { if (!emitter.isDisposed()) { emitter.onError(e); } }
It seems that without the check we can get non deliverable exceptions. Thanks
The text was updated successfully, but these errors were encountered:
Should be possible for sure, though as always it could be a bit tricky to check. I'm open to contributions if anyone wants to give this a try.
Sorry, something went wrong.
No branches or pull requests
Hey, would it be possible to have a new rule that checks if
emitter.isDIsposed()
is called before publishing an update?For cases like below:
It seems that without the check we can get non deliverable exceptions.
Thanks
The text was updated successfully, but these errors were encountered: