<PackageReference Include="ReactiveUI.Primitives.Core" Version="10.0.0" />

ReactiveUI.Primitives.Advanced.UseSignal<TResource, T>

public sealed class UseSignal<TResource, T> : IObservable<T> where TResource : IDisposable
Creates a resource per subscription and disposes it when the sequence terminates or the subscription is disposed.
public UseSignal(Func<TResource> resourceFactory, Func<TResource, IObservable<T>> signalFactory)

Creates a resource per subscription and disposes it when the sequence terminates or the subscription is disposed.

public IDisposable Subscribe(IObserver<T> observer)