Skip to content

Conversation

@akarnokd
Copy link
Collaborator

Inline the SingleAssignmentDisposable into the PushPullSink (similar to how Sinks were inlined).

This PR also includes the logic changes from #667 as the Collect() operator also uses the push-pull adapter.

var res = Run(d);
d.Disposable = _source.SubscribeSafe(res);
var res = Run();
res.SetUpstream(_source.SubscribeSafe(res));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please evaluate inheriting PushToPullSink from Sink and using base.Run here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sink is not good here as there is no downstream IObserver to talk to.

@danielcweber danielcweber merged commit 188f391 into dotnet:master Jun 28, 2018
@akarnokd akarnokd deleted the PushPullAdapterSinkImprovements branch June 28, 2018 16:34
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.

2 participants