{% if book.isPdf %}
{% else %}
{% endif %}
Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime.
resourceFactory
(Function
): Factory function to obtain a resource object.observableFactory
(Scheduler
): Factory function to obtain an observable sequence that depends on the obtained resource.
(Function
): An observable sequence whose lifetime controls the lifetime of the dependent resource object.