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.

reconsider to add an async observation flavor

See original GitHub issue

Should it be possible to specify an async callbacks flavor? If yes, shall I leverage an EventTarget object?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gulleryacommented, Aug 31, 2020

Design decision made thus far:

  • async/sync changes delivery will be controllable on the level of Observable, nor lower than that (not per observer callback), nether higher - the whole framework
  • the default flavour will remain the same - sync
  • in order to make an Observable to dispatch the changes in async way the following API should be used (pay attention to the second options parameter): const oo = Observable.from({ <some object> }, { async: true });
  • changes will be delayed later on in the same task, by queueMicrotask means
  • if the callback causes new changes to be delivered, they’ll be dispatched in the next microtask, not the currently running
0reactions
gulleryacommented, Sep 3, 2020

implemented in 3.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error thrown when using react hooks · Issue #128 - GitHub
My general observation is that if I use userEvent.type(input, 'some text) early in the test, and later there are couple of other async...
Read more >
Calling coroutines within asyncio.Protocol.data_received
I am coming from Twisted, where doing asynchronous stuff within the corresponding callback ("dataReceived") is ok. Now, Twisted does internal buffering of data ......
Read more >
in rx.js make source.subscribe await it's observer using async ...
There's no way to tell a source observable to put events on hold from within a subscribe , it just lets us "observe"...
Read more >
Subjects (part 1) - Advanced Reactive Java
We return the final Observer instances for the add- and remove-channels through the methods. The actual list manipulation has been moved to the ......
Read more >
Meet the Async A-Team || Shaping the Way We Work - Tl;dv
We're all living the remote and async dream. ... Thus, he's the perfect inaugural Async A-Team nominee. ... Here's a small taste of...
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