question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get return value from evt.post

See original GitHub issue

Any idea about get return value or complete callback after evt.post

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
garronejcommented, Aug 18, 2020

Ok, this is food for thought, I will investigate. Thanks @iShawnWang

1reaction
garronejcommented, Aug 16, 2020

I am not sure if this meet the design principle of evt, maybe this meet my needs :

myEvt.post(params).then(returnValue => {
    // other logic
})

I was thinking about something like that. When would you expect the then callback to be invoked? When all handlers have been called?
What would you want the retrunValue to be? The params ?

The postCount returnValue seems useless

Agreed

Awesome library by the way ~

🙏🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Event.returnValue - Web APIs | MDN
Value. A boolean value which is true if the event has not been canceled; otherwise, if the event has been canceled or the...
Read more >
how to get the value from an event target in js - Stack Overflow
Try: var myVal = event.target.value;.
Read more >
get return value of $emit event's callback #5443 - vuejs/vue
The first try the value is returned properly. I can't find out how to return the promise after attaching it to the 'tokenRefreshed'...
Read more >
preventDefault() Event Method - W3Schools
Use the cancelable property to find out if an event is cancelable. Note: The preventDefault() method does not prevent ... Return Value: No...
Read more >
Get-WinEvent (Microsoft.PowerShell.Diagnostics)
By default, Get-WinEvent returns event information in the order of newest to oldest. ... The Path value takes paths to .etl , .evt...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found