Skip to content

Polish Behavior apiΒ #2130

@He-Pin

Description

@He-Pin

The current one may be nested; we can make use of a chained call.
eg:
https://smallrye.io/smallrye-mutiny/latest/

request.ifNoItem().after(ofMillis(100))
    .failWith(() -> new TooSlowException("πŸ’₯"))
    .onFailure(IOException.class).recoverWithItem(fail -> "πŸ“¦")
    .subscribe().with(
        item -> log("πŸ‘ " + item),
         err -> log(err.getMessage())
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions