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.

.then doesn't seem to work

See original GitHub issue

Running the following example from the README, then seems to be missing or not implemented.

Observable.of(0, 1, 2, 3, 4).reduce((previousValue, currentValue) => {
    return previousValue + currentValue;
}).then(result => {
    assert(result === 10);
});

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zenparsingcommented, Apr 26, 2016

That’s what reduce in Dart streams do as well, and it aligns better with the spirit of Array.prototype.reduce.

0reactions
zenparsingcommented, May 23, 2016

Fixed the README to indicate that an observable is returned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Reasons You Have No Motivation To Work (And ... - Zippia
Solution: Communication and maybe quitting. If you feel that you're not making progress in your job, then you might want to talk with...
Read more >
node.js - Promise problems - .then() not getting called?
It works in that it inserts obj1 first and then the array of transactions, however the final 'then()' doesn't seem to get called....
Read more >
What do I do if my boyfriend does not want to work? - Quora
My boyfriend doesn't have a job and it seems almost impossible to get one because he has been unemployed for almost 5 years....
Read more >
How To Handle a Lack of Support at Work (And Why It's ...
If you feel you're not receiving enough support with your job, then consider observing these practices to obtain the endorsement you desire: ...
Read more >
20 Signs Your Husband Doesn't Value You Anymore
It's not just work stress or life stress. It seems to be gone for good. Not only that, but when you tell him...
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