Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

ReadOnlyReactiveProperty does not call OnCompleted in some cases #536

@ymfact

Description

@ymfact

When OnCompleted is called on a Subject,
the associated ReadOnlyReactiveProperty's OnCompleted should also be invoked,
but it is not happening as expected.

var subject = new Subject<Unit>();
var readOnlyReactiveProperty = subject.ToReadOnlyReactiveProperty();
readOnlyReactiveProperty.Subscribe(
    onNext: _ => Console.WriteLine("OnNext"),
    onCompleted: () => Console.WriteLine("OnCompleted"));
subject.OnCompleted();

Nothing is printed to the console with this code, whereas 'OnCompleted' should be outputted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions