ISafeObserver<T>
Base interface for observers that can dispose of a resource on a terminal notification
or when disposed itself.
using System.
Runtime.
CompilerServices;
namespace System.
Reactive
{
internal interface ISafeObserver<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
in T> :
IObserver<
T>,
IDisposable
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
void SetResource(
IDisposable resource);
}
}