public class RxJavaAwaitableAdapter
extends Object
implements AwaitableAdapter
Adapter for RxJava 3 types, enabling:
await single — awaits a Singleawait maybe — awaits a Maybe (nullable result)await completable — awaits a Completablefor await (item in observable) — iterates over an Observablefor await (item in flowable) — iterates over a Flowable
Auto-discovered via ServiceLoader when groovy-rxjava
is on the classpath.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
supportsAwaitable(Class<?> type) |
|
public boolean |
supportsIterable(Class<?> type) |
<T> |
public Awaitable<T> |
toAwaitable(Object source) |
<T> |
public Iterable<T> |
toIterable(Object source) |