Table of Contents

Subscribe Method

Subscribe(IObserver<T>)

public IDisposable Subscribe(IObserver<T> observer)

Notifies the provider that an observer is to receive notifications.

Parameters

observer IObserver<T>

The object that is to receive notifications.

Returns

IDisposable

A reference to an interface that allows observers to stop receiving notifications before the provider has finished sending them.

Subscribe(UnityAction<T>)

public IDisposable Subscribe(UnityAction<T> act)

Parameters

act UnityAction<T>

Returns

IDisposable