dotnet / dotnet/reactive

Concatenating many FirstAsync will block completion of parents observables?

Open
#1,613 5 comments 0 reactions 0 assignees View on GitHub
[area] Rx
Dominant language
C#
Stars
7.2k
Forks
798
PR merge metrics
No merged PRs in 30d

Description

I'm working with Reactive and I was testing concatenation. Unfortunately I wasn't able to understand something. Can anyone explain why only last onCompleted: is being invoked? I'm really confused about it. Aren't all FirstAsync supposed to complete once they emit First element?
Code Example:
```
Observable
.FirstAsync()
.Do(_ =>
{

}, onCompleted: () =>
{
//Not Invoked
})
.FirstAsync()
.Do(_ =>
{

}, onCompleted: () =>
{
//Properly Invoked
});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.