Flows

Added in 1.0.0-alpha01

public final class Flows


Summary

Public methods

static final @NonNull Observable<@NonNull T>
<T extends Object> toObservable(
    @NonNull Session session,
    @NonNull Flow<@NonNull T> flow
)

Converts a flow created within the session to an Observable.

Public methods

toObservable

public static final @NonNull Observable<@NonNull T> <T extends Object> toObservable(
    @NonNull Session session,
    @NonNull Flow<@NonNull T> flow
)

Converts a flow created within the session to an Observable.

The returned Observable will be given the session's CoroutineContext.

Parameters
@NonNull Session session

the Session that originated the flow.

@NonNull Flow<@NonNull T> flow

the Flow to convert to an Observable.