Skip to content
New issue

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

reactive error handling #997

Open
pietermartin opened this issue Jul 30, 2021 · 0 comments
Open

reactive error handling #997

pietermartin opened this issue Jul 30, 2021 · 0 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@pietermartin
Copy link

Is it possible to have the error handling go via reactive's doOnError
Already doOnComplete fires but doOnError is swallowed.
Seems to me the only way to get the StateMachineEventResult is to block.

StateMachineEventResult<String, String> result = activityRecord.triggerHandleSignal()
    .subscribeOn(ICmStateMachine.TRIGGER_THREADS)
    .doOnComplete(() -> {
    })
    .doOnError(throwable -> {
    })
    .blockLast();

Would it not be better if the exception propogates to doOnError?

Thanks

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

1 participant