arrow-effects-reactor-data / arrow.effects.reactor / FluxK


@higherkind data class FluxK<A> : FluxKOf<A>, FluxKKindedJ<A>


<init> FluxK(flux: Flux<A>)


flux val flux: Flux<A>


ap fun <B> ap(fa: FluxKOf<(A) -> B>): FluxK<B>
bracketCase fun <B> bracketCase(use: (A) -> FluxKOf<B>, release: (A, ExitCase<Throwable>) -> FluxKOf<Unit>): FluxK<B>
A way to safely acquire a resource and release in the face of errors and cancellation. It uses ExitCase to distinguish between different exit cases when releasing the acquired resource.
concatMap fun <B> concatMap(f: (A) -> FluxKOf<B>): FluxK<B>
continueOn fun continueOn(ctx: CoroutineContext): FluxK<A>
equals fun equals(other: Any?): Boolean
flatMap fun <B> flatMap(f: (A) -> FluxKOf<B>): FluxK<B>
foldLeft fun <B> foldLeft(b: B, f: (B, A) -> B): B
foldRight fun <B> foldRight(lb: Eval<B>, f: (A, Eval<B>) -> Eval<B>): Eval<B>
handleErrorWith fun handleErrorWith(function: (Throwable) -> FluxK<A>): FluxK<A>
hashCode fun hashCode(): Int
map fun <B> map(f: (A) -> B): FluxK<B>
runAsync fun runAsync(cb: (Either<Throwable, A>) -> FluxKOf<Unit>): FluxK<Unit>
runAsyncCancellable fun runAsyncCancellable(cb: (Either<Throwable, A>) -> FluxKOf<Unit>): FluxK<Disposable>
switchMap fun <B> switchMap(f: (A) -> FluxKOf<B>): FluxK<B>
traverse fun <G, B> traverse(GA: Applicative<G>, f: (A) -> Kind<G, B>): Kind<G, FluxK<B>>

Companion Object Functions

async fun <A> async(fa: FluxKProc<A>): FluxK<A>
Creates a FluxK that’ll run FluxKProc.
asyncF fun <A> asyncF(fa: FluxKProcF<A>): FluxK<A>
defer fun <A> defer(fa: () -> FluxKOf<A>): FluxK<A>
invoke operator fun <A> invoke(fa: () -> A): FluxK<A>
just fun <A> just(a: A): FluxK<A>
raiseError fun <A> raiseError(t: Throwable): FluxK<A>
tailRecM tailrec fun <A, B> tailRecM(a: A, f: (A) -> FluxKOf<Either<A, B>>): FluxK<B>

Extension Functions

fix fun <A> FluxKOf<A>.fix(): FluxK<A>
sequence fun <A, G> FluxKOf<Kind<G, A>>.sequence(GA: Applicative<G>): Kind<G, FluxK<A>>
value fun <A> FluxKOf<A>.value(): Flux<A>