LanguageExt.Pipes

LanguageExt.Pipes ConsumerT

Contents

record ConsumerT <IN, M, A> (PipeT<IN, Void, M, A> Proxy) Source #

where M : Monad<M>

ConsumerT streaming consumer monad-transformer instance

Methods

method ConsumerT<IN, M, B> Map <B> (Func<A, B> f) Source #

method ConsumerT<IN, M, B> MapM <B> (Func<K<M, A>, K<M, B>> f) Source #

method ConsumerT<IN, M, B> MapIO <B> (Func<IO<A>, IO<B>> f) Source #

method ConsumerT<IN, M, B> ApplyBack <B> (ConsumerT<IN, M, Func<A, B>> ff) Source #

method ConsumerT<IN, M, B> Action <B> (ConsumerT<IN, M, B> fb) Source #

method ConsumerT<IN, M, B> Bind <B> (Func<A, ConsumerT<IN, M, B>> f) Source #

method ConsumerT<IN, M, B> Bind <B> (Func<A, IO<B>> f) Source #

method ConsumerT<IN, M, B> Bind <B> (Func<A, K<M, B>> f) Source #

method ConsumerT<IN, M, B> Bind <B> (Func<A, Pure<B>> f) Source #

method ConsumerT<IN, M, B> Bind <B> (Func<A, Lift<B>> f) Source #

method ConsumerT<IN, M, B> Select <B> (Func<A, B> f) Source #

method ConsumerT<IN, M, C> SelectMany <B, C> (Func<A, ConsumerT<IN, M, B>> f, Func<A, B, C> g) Source #

method ConsumerT<IN, M, C> SelectMany <B, C> (Func<A, K<M, B>> f, Func<A, B, C> g) Source #

method ConsumerT<IN, M, C> SelectMany <B, C> (Func<A, IO<B>> f, Func<A, B, C> g) Source #

method ConsumerT<IN, M, C> SelectMany <B, C> (Func<A, Pure<B>> f, Func<A, B, C> g) Source #

method ConsumerT<IN, M, C> SelectMany <B, C> (Func<A, Lift<B>> f, Func<A, B, C> g) Source #

class ConsumerTExtensions Source #

Methods

method ConsumerT<IN, M, A> ToConsumer <IN, M, A> (this K<PipeT<IN, Void, M>, A> pipe) Source #

where M : Monad<M>

Transformation from PipeT to ConsumerT.

method ConsumerT<IN, M, A> As <IN, M, A> (this K<ConsumerT<IN, M>, A> ma) Source #

where M : Monad<M>

Downcast

method Consumer<RT, IN, A> ToEff <RT, IN, A> (this K<ConsumerT<IN, Eff<RT>>, A> ma) Source #

Convert to the Eff version of Consumer

method ConsumerT<IN, M, C> SelectMany <IN, M, A, B, C> ( this K<M, A> ma, Func<A, ConsumerT<IN, M, B>> f, Func<A, B, C> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, C> SelectMany <IN, M, A, B, C> ( this IO<A> ma, Func<A, ConsumerT<IN, M, B>> f, Func<A, B, C> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, C> SelectMany <IN, M, A, B, C> ( this Pure<A> ma, Func<A, ConsumerT<IN, M, B>> f, Func<A, B, C> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, C> SelectMany <IN, M, A, B, C> ( this Lift<A> ff, Func<A, ConsumerT<IN, M, B>> f, Func<A, B, C> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, B> Bind <IN, M, A, B> ( this K<M, A> ma, Func<A, ConsumerT<IN, M, B>> f, Func<A, B> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, B> Bind <IN, M, A, B> ( this IO<A> ma, Func<A, ConsumerT<IN, M, B>> f, Func<A, B> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, B> Bind <IN, M, A, B> ( this Pure<A> ma, Func<A, ConsumerT<IN, M, B>> f, Func<A, B> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, B> Bind <IN, M, A, B> ( this Lift<A> ff, Func<A, ConsumerT<IN, M, B>> f, Func<A, B> g) Source #

where M : Monad<M>

Monad bind

method ConsumerT<IN, M, C> SelectMany <IN, E, M, A, C> ( this K<ConsumerT<IN, M>, A> ma, Func<A, Guard<E, Unit>> bind, Func<A, Unit, C> project) Source #

where M : Monad<M>, Fallible<E, M>

Monad bind operation

method ConsumerT<IN, M, C> SelectMany <IN, E, M, B, C> ( this Guard<E, Unit> ma, Func<Unit, K<ConsumerT<IN, M>, B>> bind, Func<Unit, B, C> project) Source #

where M : Monad<M>, Fallible<E, M>

Monad bind operation

class ConsumerT Source #

ConsumerT streaming consumer monad-transformer

Methods

method ConsumerT<IN, M, IN> awaiting <M, IN> () Source #

where M : Monad<M>

Await a value from upstream

Parameters

type IN

Stream value to consume

type M

Lifted monad type

returns

method ConsumerT<IN, M, Unit> awaitIgnore <M, IN> () Source #

where M : Monad<M>

Await a value from upstream and then ignore it

Parameters

type IN

Stream value to consume

type M

Lifted monad type

returns

method ConsumerT<IN, M, A> pure <IN, M, A> (A value) Source #

where M : Monad<M>

Create a consumer that simply returns a bound value without awaiting anything

Parameters

type IN

Stream value to await

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> fail <IN, E, M, A> (E value) Source #

where M : Monad<M>, Fallible<E, M>

Create a consumer that always fails

Parameters

type IN

Stream value to await

type E

Failure type

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> error <IN, M, A> (Error value) Source #

where M : Monad<M>, Fallible<M>

Create a consumer that always fails

Parameters

type IN

Stream value to await

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> empty <IN, M, A> () Source #

where M : Monad<M>, MonoidK<M>

Create a consumer that yields nothing at all

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> lift <IN, M, A> (Func<A> f) Source #

where M : Monad<M>

Create a consumer that simply returns a bound value without yielding anything

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> liftT <IN, M, A> (Func<ConsumerT<IN, M, A>> f) Source #

where M : Monad<M>

Create a lazy consumer

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> liftT <IN, M, A> (Func<ValueTask<ConsumerT<IN, M, A>>> f) Source #

where M : Monad<M>

Create an asynchronous lazy consumer

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> liftT <IN, M, A> (ValueTask<ConsumerT<IN, M, A>> f) Source #

where M : Monad<M>

Create an asynchronous consumer

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> liftM <IN, M, A> (K<M, A> ma) Source #

where M : Monad<M>

Create a consumer that simply returns the bound value of the lifted monad without yielding anything

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> liftIO <IN, M, A> (IO<A> ma) Source #

where M : Monad<M>

Create a consumer that simply returns the bound value of the lifted monad without yielding anything

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> repeat <IN, M, A> (ConsumerT<IN, M, A> ma) Source #

where M : Monad<M>

Continually repeat the provided operation

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> repeat <IN, M, A> (Schedule schedule, ConsumerT<IN, M, A> ma) Source #

where M : Monad<M>

Repeat the provided operation based on the schedule provided

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> repeatM <IN, M, A> (K<M, A> ma) Source #

where M : Monad<M>

Continually lift & repeat the provided operation

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

method ConsumerT<IN, M, A> repeatM <IN, M, A> (Schedule schedule, K<M, A> ma) Source #

where M : Monad<M>

Repeat the provided operation based on the schedule provided

Parameters

type IN

Stream value to consume

type M

Lifted monad type

type A

Bound value type

returns

class ConsumerT <IN, M> Source #

where M : Monad<M>