Skip to content

API.Util.Observables

JuDelCo edited this page May 20, 2021 · 3 revisions

Namespace: Ju.Observables

Observable < T >

Observable(T initialValue);

void Subscribe(ILinkHandler handle, Action<T> action);
void Subscribe<T>(IService service, Action<T> action);
void Subscribe<T>(State state, Action<T> action);

bool HasSubscribers();
void Trigger();

T Value;

Observable (Static)

Observable<T> New<T>(T value);

Observable Global Extension

If you add using Ju.Extensions; to your code, you can use this extension method in any object type to create an Observable.

Observable<T> ToObservable<T>();
Clone this wiki locally