any

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

Members

Functions

any
AnyObservable!(TObservable, pred) any(TObservable observable)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import rx.subject : SubjectObject;

auto sub = new SubjectObject!int;

bool result = false;
sub.any!("a % 2 == 0").doSubscribe((bool) { result = true; });

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

Meta