ActionObservable<T> Class

Executes an action post-subscription. This is useful when the action is going to publish to the observable. A kind of request/response. Use the IObservable extension method: PostSubscribe(() => ...)

DECLARATION
public class ActionObservable<T> : IObservable<T>
NAMESPACE
LanguageExt

Constructors

ActionObservable(Action, IObservable<T>)
PARAMETERS
postSubscribeAction
Action
switchTo
IObservable<T>
DECLARATION
public ctor ActionObservable(Action postSubscribeAction, IObservable<T> switchTo)

Methods

Subscribe(IObserver<T>)
PARAMETERS
observer
IObserver<T>
DECLARATION
public IDisposable Subscribe(IObserver<T> observer)
RETURNS
IDisposable