Skip to content

Add ability to 'fire and wait' a message #2

@poloka

Description

@poloka

As a consumer or content provider I would like the ability to send and wait for a response to a message
So that I may ask either the consumer or content provider for some information
I will know when complete when I can send a message to say my consumer asking for a value and my consumer can listen and respond to that message back to the calling event.

A simple example would be for consumer that is about to refresh their page asks its content providers if they are dirty before allowing the entire page to be destroyed. And upon check the page either refreshes or a message is displayed. The logic for both sides of the fence and event names would have to be handled by the individual's implementation but looking for a reusable way to provide this 'fire and wait' type of model rather than a 'fire and forget'. Grated this could be accomplished by providing a payload with a return event name but would be nice if was a first class method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions