Will be removed in v8. To create a connectable observable, use connectable.
If you're using refCount after multicast
, use the share operator instead.
multicast(subject), refCount()
is equivalent to
share({ connector: () => subject, resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })
.
Details: https://rxjs.dev/deprecations/multicasting
import { multicast } from "https://deno.land/x/rxjs@v1.0.2/mod.ts";
An operator that creates a ConnectableObservable, that when connected,
with the connect
method, will use the provided subject to multicast the values
from the source to all consumers.
Returns
A function that returns a ConnectableObservable
Because this is deprecated in favor of the connect operator, and was otherwise poorly documented, rather than duplicate the effort of documenting the same behavior, please see documentation for the connect operator.
Type Parameters
Returns
An operator that creates a ConnectableObservable, that when connected,
with the connect
method, will use the provided subject to multicast the values
from the source to all consumers.
Returns
A function that returns a ConnectableObservable
Because this is deprecated in favor of the connect operator, and was otherwise poorly documented, rather than duplicate the effort of documenting the same behavior, please see documentation for the connect operator.