Skip to content

Observable.using() disposes resource before upstream #6347

Closed
@AterIgnis

Description

@AterIgnis

I've expected that Observable.using flow is:

  • create resource
  • creates resource using observable, subscribe
  • finish/cancel resource-using observable
  • dispose resource

But for me actual is sometimes

  • create resource
  • creates resource using observable, subscribe
  • dispose resource
  • finish/cancel resource-using observable

As I understand, using 'eager' makes second flow consistent,but i need first behavior, which is not observed on dispose() call - resource is disposed first always, then observable. What is correct way to make Observable which is not eager even on dispose?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions