any method

  1. @override
AsObservableFuture<bool> any (bool test(T element))

Checks whether test accepts any element provided by this stream.

Calls test on each element of the stream. If the call returns true, the returned future is completed with true and processing stops.

If the stream ends without finding an element that test accepts, the returned future is completed with false.

If this stream contains an error, or if the call to test throws, the returned future is completed with that error, and processing stops.

Implementation

@override
AsObservableFuture<bool> any(bool test(T element)) =>
    new AsObservableFuture<bool>(stream.any(test));