Skip to content

reactive error handling #997

Open
Open
@pietermartin

Description

@pietermartin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions