Skip to content

emit with callback given will always be called#7

Open
outbounder wants to merge 2 commits into
masterfrom
emit-always-invoke-callback
Open

emit with callback given will always be called#7
outbounder wants to merge 2 commits into
masterfrom
emit-always-invoke-callback

Conversation

@outbounder
Copy link
Copy Markdown
Member

@outbounder outbounder commented Nov 28, 2018

This resolves usage edge case described in detail at https://trello.com/c/9kQJgDkj/187-organic-plasma-and-callbacks

  • updates README
  • updates CHANGELOG
  • has passing test

the usage edge case

When doing plasma.emit(..., callback) one expects to have callback invoked when reaction gets hit and provides any feedback. However reactions which are one off implementations like plasma.on(..., function (c) {}) do not accept and thus do not invoke callback.

Therefore this PR brings automatic callback invoke for those reactions which do not accept callback when invoked via plasma.emit with implicit callback argument.

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

Successfully merging this pull request may close these issues.

1 participant