any

  1. template any(alias pred = "true")
  2. AnyObservable!TObservable any(TObservable observable)
    AnyObservable!TObservable
    any
    (
    TObservable
    )
    (
    auto ref TObservable observable
    )

Examples

import rx.subject : SubjectObject;

auto sub = new SubjectObject!int;

bool result = false;
sub.any().doSubscribe((bool) { result = true; });

assert(result == false);
sub.put(1);
assert(result == true);

Meta