Skip to content

Observable.using() diposeEagerly clarification. #4144

@mfycheng

Description

@mfycheng

From my understanding, if disposeEagerly == false when calling Observable.using(resourceFactory, observableFactory, diposeEagerly), then the disposeAction should not be called when a termination event occurs.

However, based on:

.doAfterTerminate(disposeOnceOnly);

it appears that it just changes whether or not disposeAction is called before or after the termination event.

Is my understanding correct? And if so, is this the desired behaviour? The documentation for Observable.using(resourceFactory, observableFactory) implies that disposeAction is is only called on unsubscribe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions