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

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

Open
poloka opened this issue Jun 16, 2017 · 1 comment
Open

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

poloka opened this issue Jun 16, 2017 · 1 comment

Comments

@poloka
Copy link
Contributor

poloka commented Jun 16, 2017

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.

@mhemesath
Copy link
Contributor

I think this is a great request, and I'm open to adding this if you want to contribute it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants