Skip to content

Misleading Javadoc for Policy.whenever() #1524

Open
@alexander-yevsyukov

Description

@alexander-yevsyukov

Now it says:

Handles an event and produces some number of events in response.

The signature is:

@ContractFor(handler = React::class)
    protected abstract fun whenever(event: E): Iterable<Message>

Logically, we can emit not only events, but commands too. It would be also good to bind it on the level of the method signature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocsDocumentation and site tasks

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions