LanguageExt.Core

LanguageExt.Core Effects Eff Extensions

Contents

class EffExtensions Source #

Methods

method Eff<B> Apply <A, B> (this Eff<Func<A, B>> mf, Eff<A> ma) Source #

method Eff<C> Apply <A, B, C> (this Eff<Func<A, B, C>> mf, Eff<A> ma, Eff<B> mb) Source #

method Eff<Func<B, C>> Apply <A, B, C> (this Eff<Func<A, B, C>> mf, Eff<A> ma) Source #

method Eff<D> Apply <A, B, C, D> (this Eff<Func<A, B, C, D>> mf, Eff<A> ma, Eff<B> mb, Eff<C> mc) Source #

method Eff<Func<C, D>> Apply <A, B, C, D> (this Eff<Func<A, B, C, D>> mf, Eff<A> ma, Eff<B> mb) Source #

method Eff<Func<B, C, D>> Apply <A, B, C, D> (this Eff<Func<A, B, C, D>> mf, Eff<A> ma) Source #

method Eff<E> Apply <A, B, C, D, E> (this Eff<Func<A, B, C, D, E>> mf, Eff<A> ma, Eff<B> mb, Eff<C> mc, Eff<D> md) Source #

method Eff<Func<D, E>> Apply <A, B, C, D, E> (this Eff<Func<A, B, C, D, E>> mf, Eff<A> ma, Eff<B> mb, Eff<C> mc) Source #

method Eff<Func<C, D, E>> Apply <A, B, C, D, E> (this Eff<Func<A, B, C, D, E>> mf, Eff<A> ma, Eff<B> mb) Source #

method Eff<Func<B, C, D, E>> Apply <A, B, C, D, E> (this Eff<Func<A, B, C, D, E>> mf, Eff<A> ma) Source #

method Eff<RT, B> Apply <RT, A, B> (this Eff<RT, Func<A, B>> mf, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, C> Apply <RT, A, B, C> (this Eff<RT, Func<A, B, C>> mf, Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, Func<B, C>> Apply <RT, A, B, C> (this Eff<RT, Func<A, B, C>> mf, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, D> Apply <RT, A, B, C, D> (this Eff<RT, Func<A, B, C, D>> mf, Eff<RT, A> ma, Eff<RT, B> mb, Eff<RT, C> mc) Source #

where RT : struct

method Eff<RT, Func<C, D>> Apply <RT, A, B, C, D> (this Eff<RT, Func<A, B, C, D>> mf, Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, Func<B, C, D>> Apply <RT, A, B, C, D> (this Eff<RT, Func<A, B, C, D>> mf, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, E> Apply <RT, A, B, C, D, E> (this Eff<RT, Func<A, B, C, D, E>> mf, Eff<RT, A> ma, Eff<RT, B> mb, Eff<RT, C> mc, Eff<RT, D> md) Source #

where RT : struct

method Eff<RT, Func<D, E>> Apply <RT, A, B, C, D, E> (this Eff<RT, Func<A, B, C, D, E>> mf, Eff<RT, A> ma, Eff<RT, B> mb, Eff<RT, C> mc) Source #

where RT : struct

method Eff<RT, Func<C, D, E>> Apply <RT, A, B, C, D, E> (this Eff<RT, Func<A, B, C, D, E>> mf, Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, Func<B, C, D, E>> Apply <RT, A, B, C, D, E> (this Eff<RT, Func<A, B, C, D, E>> mf, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, B> Apply <RT, A, B> (this Func<A, B> f, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, C> Apply <RT, A, B, C> (this Func<A, B, C> f, Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, Func<B, C>> Apply <RT, A, B, C> (this Func<A, B, C> f, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, D> Apply <RT, A, B, C, D> (this Func<A, B, C, D> f, Eff<RT, A> ma, Eff<RT, B> mb, Eff<RT, C> mc) Source #

where RT : struct

method Eff<RT, Func<C, D>> Apply <RT, A, B, C, D> (this Func<A, B, C, D> f, Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, Func<B, C, D>> Apply <RT, A, B, C, D> (this Func<A, B, C, D> f, Eff<RT, A> ma) Source #

where RT : struct

method Eff<RT, E> Apply <RT, A, B, C, D, E> (this Func<A, B, C, D, E> f, Eff<RT, A> ma, Eff<RT, B> mb, Eff<RT, C> mc, Eff<RT, D> md) Source #

where RT : struct

method Eff<RT, Func<D, E>> Apply <RT, A, B, C, D, E> (this Func<A, B, C, D, E> f, Eff<RT, A> ma, Eff<RT, B> mb, Eff<RT, C> mc) Source #

where RT : struct

method Eff<RT, Func<C, D, E>> Apply <RT, A, B, C, D, E> (this Func<A, B, C, D, E> f, Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, Func<B, C, D, E>> Apply <RT, A, B, C, D, E> (this Func<A, B, C, D, E> f, Eff<RT, A> ma) Source #

where RT : struct

class Prelude Source #

Methods

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Error error, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error matches the argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, Error error, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error matches the argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Error error, Func<Error, Eff<A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error matches the argument provided

method Eff<A> Catch <A> (this Eff<A> ma, Error error, Func<Error, Eff<A>> Fail) Source #

Catch an error if the error matches the argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Error error, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error matches the argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, Error error, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error matches the argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Error error, Eff<A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error matches the argument provided

method Eff<A> Catch <A> (this Eff<A> ma, Error error, Eff<A> Fail) Source #

Catch an error if the error matches the argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, int errorCode, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error Code matches the errorCode argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, int errorCode, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error Code matches the errorCode argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, int errorCode, Func<Error, Eff<A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error Code matches the errorCode argument provided

method Eff<A> Catch <A> (this Eff<A> ma, int errorCode, Func<Error, Eff<A>> Fail) Source #

Catch an error if the error Code matches the errorCode argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, string errorText, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error message matches the errorText argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, string errorText, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error message matches the errorText argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, string errorText, Eff<A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error message matches the errorText argument provided

method Eff<A> Catch <A> (this Eff<A> ma, string errorText, Eff<A> Fail) Source #

Catch an error if the error message matches the errorText argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, int errorCode, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error Code matches the errorCode argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, int errorCode, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error Code matches the errorCode argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, int errorCode, Eff<A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error Code matches the errorCode argument provided

method Eff<A> Catch <A> (this Eff<A> ma, int errorCode, Eff<A> Fail) Source #

Catch an error if the error Code matches the errorCode argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, string errorText, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error message matches the errorText argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, string errorText, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error message matches the errorText argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, string errorText, Func<Error, Eff<A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if the error message matches the errorText argument provided

method Eff<A> Catch <A> (this Eff<A> ma, string errorText, Func<Error, Eff<A>> Fail) Source #

Catch an error if the error message matches the errorText argument provided

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Func<Exception, bool> predicate, Func<Exception, Eff<A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if it's of a specific exception type

method Eff<A> Catch <A> (this Eff<A> ma, Func<Exception, bool> predicate, Func<Exception, Eff<A>> Fail) Source #

Catch an error if it's of a specific exception type

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Func<Exception, bool> predicate, Eff<A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if it's of a specific exception type

method Eff<A> Catch <A> (this Eff<A> ma, Func<Exception, bool> predicate, Eff<A> Fail) Source #

Catch an error if it's of a specific exception type

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Func<Exception, bool> predicate, Func<Exception, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if it's of a specific exception type

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, Func<Exception, bool> predicate, Func<Exception, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if it's of a specific exception type

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Func<Exception, bool> predicate, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if it's of a specific exception type

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, Func<Exception, bool> predicate, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch an error if it's of a specific exception type

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch all errors

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, Eff<RT, A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch all errors

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Eff<A> Fail) Source #

where RT : struct, HasCancel<RT>

Catch all errors

method Eff<A> Catch <A> (this Eff<A> ma, Eff<A> Fail) Source #

Catch all errors

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch all errors

method Eff<RT, A> Catch <RT, A> (this Eff<A> ma, Func<Error, Eff<RT, A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch all errors

method Eff<RT, A> Catch <RT, A> (this Eff<RT, A> ma, Func<Error, Eff<A>> Fail) Source #

where RT : struct, HasCancel<RT>

Catch all errors

method Eff<A> Catch <A> (this Eff<A> ma, Func<Error, Eff<A>> Fail) Source #

Catch all errors

class AffExtensions Source #

Methods

method Aff<RT, A> ToAff <RT, A> (this Eff<RT, A> ma) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> Map <RT, A, B> (this Eff<RT, A> ma, Func<A, B> f) Source #

where RT : struct

method Eff<RT, A> MapFail <RT, A> (this Eff<RT, A> ma, Func<Error, Error> f) Source #

where RT : struct

method Aff<RT, B> MapAsync <RT, A, B> (this Eff<RT, A> ma, Func<A, ValueTask<B>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> BiMap <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, Func<Error, Error> Fail) Source #

where RT : struct

method Eff<RT, B> Match <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, Func<Error, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, Aff<RT, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, Func<Error, Aff<RT, B>> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, Eff<RT, B> Fail) Source #

where RT : struct

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, Func<Error, Eff<RT, B>> Fail) Source #

where RT : struct

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<RT, A> ma, Aff<RT, B> Succ, Func<Error, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<RT, A> ma, Func<A, Aff<RT, B>> Succ, Func<Error, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Eff<RT, B> Succ, Func<Error, B> Fail) Source #

where RT : struct

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Func<A, Eff<RT, B>> Succ, Func<Error, B> Fail) Source #

where RT : struct

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<RT, A> ma, Aff<RT, B> Succ, Aff<RT, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<RT, A> ma, Func<A, Aff<RT, B>> Succ, Func<Error, Aff<RT, B>> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Eff<RT, B> Succ, Eff<RT, B> Fail) Source #

where RT : struct

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<RT, A> ma, Func<A, Eff<RT, B>> Succ, Func<Error, Eff<RT, B>> Fail) Source #

where RT : struct

method Eff<RT, B> Match <RT, A, B> (this Eff<RT, A> ma, B Succ, Func<Error, B> Fail) Source #

where RT : struct

method Eff<RT, B> Match <RT, A, B> (this Eff<RT, A> ma, Func<A, B> Succ, B Fail) Source #

where RT : struct

method Eff<RT, B> Match <RT, A, B> (this Eff<RT, A> ma, B Succ, B Fail) Source #

where RT : struct

method Eff<RT, A> IfFail <RT, A> (this Eff<RT, A> ma, Func<Error, A> f) Source #

where RT : struct

method Eff<RT, A> IfFail <RT, A> (this Eff<RT, A> ma, A alternative) Source #

where RT : struct

method Aff<RT, A> IfFailAff <RT, A> (this Eff<RT, A> ma, Aff<RT, A> alternative) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, A> IfFailAff <RT, A> (this Eff<RT, A> ma, Func<Error, Aff<RT, A>> alternative) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, A> IfFailAff <RT, A> (this Eff<RT, A> ma, Aff<A> alternative) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, A> IfFailAff <RT, A> (this Eff<RT, A> ma, Func<Error, Aff<A>> alternative) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, A> IfFailEff <RT, A> (this Eff<RT, A> ma, Eff<RT, A> alternative) Source #

where RT : struct

method Eff<RT, A> IfFailEff <RT, A> (this Eff<RT, A> ma, Func<Error, Eff<RT, A>> alternative) Source #

where RT : struct

method Eff<RT, A> IfFailEff <RT, A> (this Eff<RT, A> ma, Eff<A> alternative) Source #

where RT : struct

method Eff<RT, A> IfFailEff <RT, A> (this Eff<RT, A> ma, Func<Error, Eff<A>> alternative) Source #

where RT : struct

method Eff<RT, Unit> Iter <RT, A> (this Eff<RT, A> ma, Func<A, Unit> f) Source #

where RT : struct

method Aff<RT, Unit> Iter <RT, A> (this Eff<RT, A> ma, Func<A, Aff<RT, Unit>> f) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, Unit> Iter <RT, A> (this Eff<RT, A> ma, Func<A, Aff<Unit>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, Unit> Iter <RT, A> (this Eff<RT, A> ma, Func<A, Eff<RT, Unit>> f) Source #

where RT : struct

method Eff<RT, Unit> Iter <RT, A> (this Eff<RT, A> ma, Func<A, Eff<Unit>> f) Source #

where RT : struct

method Eff<RT, A> Do <RT, A> (this Eff<RT, A> ma, Func<A, Unit> f) Source #

where RT : struct

method Aff<RT, A> Do <RT, A> (this Eff<RT, A> ma, Func<A, Aff<RT, Unit>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, A> Do <RT, A> (this Eff<RT, A> ma, Func<A, Eff<RT, Unit>> f) Source #

where RT : struct

method Aff<RT, A> Do <RT, A> (this Eff<RT, A> ma, Func<A, Aff<Unit>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, A> Do <RT, A> (this Eff<RT, A> ma, Func<A, Eff<Unit>> f) Source #

where RT : struct

method Eff<RT, A> Filter <RT, A> (this Eff<RT, A> ma, Func<A, bool> f) Source #

where RT : struct

method Eff<RT, B> Bind <RT, A, B> (this Eff<RT, A> ma, Func<A, Eff<B>> f) Source #

where RT : struct

method Eff<RT, B> Bind <RT, A, B> (this Eff<RT, A> ma, Func<A, Eff<RT, B>> f) Source #

where RT : struct

method Aff<RT, B> Bind <RT, A, B> (this Eff<RT, A> ma, Func<A, Aff<B>> f) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> Bind <RT, A, B> (this Eff<RT, A> ma, Func<A, Aff<RT, B>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, A> Flatten <RT, A> (this Eff<RT, Eff<RT, A>> mma) Source #

where RT : struct

method Eff<RT, A> Flatten <RT, A> (this Eff<RT, Eff<A>> mma) Source #

where RT : struct

method Aff<RT, A> Flatten <RT, A> (this Eff<RT, Aff<RT, A>> mma) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, A> Flatten <RT, A> (this Eff<RT, Aff<A>> mma) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> Select <RT, A, B> (this Eff<RT, A> ma, Func<A, B> f) Source #

where RT : struct

method Eff<RT, B> SelectMany <RT, A, B> (this Eff<RT, A> ma, Func<A, Eff<RT, B>> f) Source #

where RT : struct

method Eff<RT, B> SelectMany <RT, A, B> (this Eff<RT, A> ma, Func<A, Eff<B>> f) Source #

where RT : struct

method Aff<RT, B> SelectMany <RT, A, B> (this Eff<RT, A> ma, Func<A, Aff<RT, B>> f) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> SelectMany <RT, A, B> (this Eff<RT, A> ma, Func<A, Aff<B>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, C> SelectMany <RT, A, B, C> (this Eff<RT, A> ma, Func<A, Eff<RT, B>> bind, Func<A, B, C> project) Source #

where RT : struct

method Eff<RT, C> SelectMany <RT, A, B, C> (this Eff<RT, A> ma, Func<A, Eff<B>> bind, Func<A, B, C> project) Source #

where RT : struct

method Aff<RT, C> SelectMany <RT, A, B, C> (this Eff<RT, A> ma, Func<A, Aff<RT, B>> bind, Func<A, B, C> project) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, C> SelectMany <RT, A, B, C> (this Eff<RT, A> ma, Func<A, Aff<B>> bind, Func<A, B, C> project) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, C> SelectMany <RT, A, B, C> (this Eff<RT, A> ma, Func<A, Effect<RT, B>> bind, Func<A, B, C> project) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, A> Where <RT, A> (this Eff<RT, A> ma, Func<A, bool> f) Source #

where RT : struct

method Eff<RT, (A, B)> Zip <RT, A, B> (Eff<RT, A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, (A, B)> Zip <RT, A, B> (Eff<A> ma, Eff<RT, B> mb) Source #

where RT : struct

method Eff<RT, (A, B)> Zip <RT, A, B> (Eff<RT, A> ma, Eff<B> mb) Source #

where RT : struct

class AffExtensions Source #

Methods

method Aff<A> ToAsync <A> (this Eff<A> ma) Source #

method Eff<B> Map <A, B> (this Eff<A> ma, Func<A, B> f) Source #

method Aff<B> MapAsync <A, B> (this Eff<A> ma, Func<A, ValueTask<B>> f) Source #

method Eff<A> MapFail <A> (this Eff<A> ma, Func<Error, Error> f) Source #

method Eff<B> BiMap <A, B> (this Eff<A> ma, Func<A, B> Succ, Func<Error, Error> Fail) Source #

method Eff<B> Match <A, B> (this Eff<A> ma, Func<A, B> Succ, Func<Error, B> Fail) Source #

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<A> ma, Func<A, B> Succ, Aff<RT, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<A> ma, Func<A, B> Succ, Func<Error, Aff<RT, B>> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<A> ma, Func<A, B> Succ, Eff<RT, B> Fail) Source #

where RT : struct

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<A> ma, Func<A, B> Succ, Func<Error, Eff<RT, B>> Fail) Source #

where RT : struct

method Eff<B> MatchEff <A, B> (this Eff<A> ma, Func<A, B> Succ, Eff<B> Fail) Source #

method Eff<B> MatchEff <A, B> (this Eff<A> ma, Func<A, B> Succ, Func<Error, Eff<B>> Fail) Source #

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<A> ma, Aff<RT, B> Succ, Func<Error, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<A> ma, Func<A, Aff<RT, B>> Succ, Func<Error, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<A> ma, Eff<RT, B> Succ, Func<Error, B> Fail) Source #

where RT : struct

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<A> ma, Func<A, Eff<RT, B>> Succ, Func<Error, B> Fail) Source #

where RT : struct

method Eff<B> MatchEff <A, B> (this Eff<A> ma, Eff<B> Succ, Func<Error, B> Fail) Source #

method Eff<B> MatchEff <A, B> (this Eff<A> ma, Func<A, Eff<B>> Succ, Func<Error, B> Fail) Source #

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<A> ma, Aff<RT, B> Succ, Aff<RT, B> Fail) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, B> MatchAff <RT, A, B> (this Eff<A> ma, Func<A, Aff<RT, B>> Succ, Func<Error, Aff<RT, B>> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<A> ma, Eff<RT, B> Succ, Eff<RT, B> Fail) Source #

where RT : struct

method Eff<RT, B> MatchEff <RT, A, B> (this Eff<A> ma, Func<A, Eff<RT, B>> Succ, Func<Error, Eff<RT, B>> Fail) Source #

where RT : struct

method Eff<B> MatchEff <A, B> (this Eff<A> ma, Eff<B> Succ, Eff<B> Fail) Source #

method Eff<B> MatchEff <A, B> (this Eff<A> ma, Func<A, Eff<B>> Succ, Func<Error, Eff<B>> Fail) Source #

method Eff<B> Match <A, B> (this Eff<A> ma, B Succ, Func<Error, B> Fail) Source #

method Eff<B> Match <RT, A, B> (this Eff<A> ma, Func<A, B> Succ, B Fail) Source #

method Eff<RT, B> Match <RT, A, B> (this Eff<A> ma, B Succ, B Fail) Source #

where RT : struct

method Eff<B> Match <A, B> (this Eff<A> ma, B Succ, B Fail) Source #

method Eff<A> IfFail <A> (this Eff<A> ma, Func<Error, A> f) Source #

method Eff<A> IfFail <RT, A> (this Eff<A> ma, A alternative) Source #

method Aff<RT, A> IfFailAff <RT, A> (this Eff<A> ma, Aff<RT, A> alternative) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, A> IfFailAff <RT, A> (this Eff<A> ma, Func<Error, Aff<RT, A>> alternative) Source #

where RT : struct, HasCancel<RT>

method Aff<A> IfFailAff <A> (this Eff<A> ma, Aff<A> alternative) Source #

method Aff<A> IfFailAff <A> (this Eff<A> ma, Func<Error, Aff<A>> alternative) Source #

method Eff<RT, A> IfFailEff <RT, A> (this Eff<A> ma, Eff<RT, A> alternative) Source #

where RT : struct

method Eff<RT, A> IfFailEff <RT, A> (this Eff<A> ma, Func<Error, Eff<RT, A>> alternative) Source #

where RT : struct

method Eff<A> IfFailEff <A> (this Eff<A> ma, Eff<A> alternative) Source #

method Eff<A> IfFailEff <A> (this Eff<A> ma, Func<Error, Eff<A>> alternative) Source #

method Eff<Unit> Iter <A> (this Eff<A> ma, Func<A, Unit> f) Source #

method Aff<RT, Unit> Iter <RT, A> (this Eff<A> ma, Func<A, Aff<RT, Unit>> f) Source #

where RT : struct, HasCancel<RT>

method Aff<Unit> Iter <A> (this Eff<A> ma, Func<A, Aff<Unit>> f) Source #

method Eff<RT, Unit> Iter <RT, A> (this Eff<A> ma, Func<A, Eff<RT, Unit>> f) Source #

where RT : struct

method Eff<Unit> Iter <A> (this Eff<A> ma, Func<A, Eff<Unit>> f) Source #

method Eff<A> Do <A> (this Eff<A> ma, Func<A, Unit> f) Source #

method Aff<RT, A> Do <RT, A> (this Eff<A> ma, Func<A, Aff<RT, Unit>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<RT, A> Do <RT, A> (this Eff<A> ma, Func<A, Eff<RT, Unit>> f) Source #

where RT : struct

method Aff<A> Do <A> (this Eff<A> ma, Func<A, Aff<Unit>> f) Source #

method Eff<A> Do <A> (this Eff<A> ma, Func<A, Eff<Unit>> f) Source #

method Eff<A> Filter <A> (this Eff<A> ma, Func<A, bool> f) Source #

method Eff<B> Bind <A, B> (this Eff<A> ma, Func<A, Eff<B>> f) Source #

method Eff<RT, B> Bind <RT, A, B> (this Eff<A> ma, Func<A, Eff<RT, B>> f) Source #

where RT : struct

method Aff<B> Bind <A, B> (this Eff<A> ma, Func<A, Aff<B>> f) Source #

method Aff<RT, B> Bind <RT, A, B> (this Eff<A> ma, Func<A, Aff<RT, B>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<B> BiBind <A, B> (this Eff<A> ma, Func<A, Eff<B>> Succ, Func<Error, Eff<B>> Fail) Source #

method Eff<RT, B> BiBind <RT, A, B> (this Eff<A> ma, Func<A, Eff<RT, B>> Succ, Func<Error, Eff<RT, B>> Fail) Source #

where RT : struct

method Aff<B> BiBind <A, B> (this Eff<A> ma, Func<A, Aff<B>> Succ, Func<Error, Aff<B>> Fail) Source #

method Aff<RT, B> BiBind <RT, A, B> (this Eff<A> ma, Func<A, Aff<RT, B>> Succ, Func<Error, Aff<RT, B>> Fail) Source #

where RT : struct, HasCancel<RT>

method Eff<A> Flatten <A> (this Eff<Eff<A>> mma) Source #

method Eff<RT, A> Flatten <RT, A> (this Eff<Eff<RT, A>> mma) Source #

where RT : struct

method Aff<A> Flatten <A> (this Eff<Aff<A>> mma) Source #

method Aff<RT, A> Flatten <RT, A> (this Eff<Aff<RT, A>> mma) Source #

where RT : struct, HasCancel<RT>

method Eff<B> Select <A, B> (this Eff<A> ma, Func<A, B> f) Source #

method Eff<B> SelectMany <A, B> (this Eff<A> ma, Func<A, Eff<B>> f) Source #

method Eff<RT, B> SelectMany <RT, A, B> (this Eff<A> ma, Func<A, Eff<RT, B>> f) Source #

where RT : struct

method Aff<B> SelectMany <A, B> (this Eff<A> ma, Func<A, Aff<B>> f) Source #

method Aff<RT, B> SelectMany <RT, A, B> (this Eff<A> ma, Func<A, Aff<RT, B>> f) Source #

where RT : struct, HasCancel<RT>

method Eff<C> SelectMany <A, B, C> (this Eff<A> ma, Func<A, Eff<B>> bind, Func<A, B, C> project) Source #

method Eff<RT, C> SelectMany <RT, A, B, C> (this Eff<A> ma, Func<A, Eff<RT, B>> bind, Func<A, B, C> project) Source #

where RT : struct, HasCancel<RT>

method Aff<C> SelectMany <A, B, C> (this Eff<A> ma, Func<A, Aff<B>> bind, Func<A, B, C> project) Source #

method Aff<RT, C> SelectMany <RT, A, B, C> (this Eff<A> ma, Func<A, Aff<RT, B>> bind, Func<A, B, C> project) Source #

where RT : struct, HasCancel<RT>

method Aff<RT, C> SelectMany <RT, A, B, C> (this Eff<A> ma, Func<A, Effect<RT, B>> bind, Func<A, B, C> project) Source #

where RT : struct, HasCancel<RT>

method Eff<A> Where <A> (this Eff<A> ma, Func<A, bool> f) Source #

method Eff<(A, B)> Zip <A, B> (Eff<A> ma, Eff<B> mb) Source #

class EffExtensions Source #

Methods

method Eff<RT, S> Fold <RT, S, A> (this Eff<RT, A> ma, Schedule schedule, S state, Func<S, A, S> fold) Source #

where RT : struct

Fold over the effect repeatedly until the schedule expires or the effect fails

Parameters

type RT

Runtime

type S

State type

type A

Bound value type

param ma

Effect to fold over

param schedule

Scheduler that controls the number of folds and the delay between each fold iteration

param state

Initial state

param fold

Folder function

returns

The result of the fold operation

method Eff<RT, S> FoldWhile <RT, S, A> (this Eff<RT, A> ma, Schedule schedule, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

where RT : struct

Fold over the effect repeatedly until the schedule expires, the effect fails, or the predicate returns false

Parameters

type RT

Runtime

type S

State type

type A

Bound value type

param ma

Effect to fold over

param schedule

Scheduler that controls the number of folds and the delay between each fold iteration

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns false, the fold ends

returns

The result of the fold operation

method Eff<RT, S> FoldUntil <RT, S, A> (this Eff<RT, A> ma, Schedule schedule, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

where RT : struct

Fold over the effect repeatedly until the schedule expires, the effect fails, or the predicate returns true

Parameters

type RT

Runtime

type S

State type

type A

Bound value type

param ma

Effect to fold over

param schedule

Scheduler that controls the number of folds and the delay between each fold iteration

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns true, the fold ends

returns

The result of the fold operation

method Eff<RT, S> Fold <RT, S, A> (this Eff<RT, A> ma, S state, Func<S, A, S> fold) Source #

where RT : struct

Fold over the effect repeatedly until the effect fails

Parameters

type RT

Runtime

type S

State type

type A

Bound value type

param ma

Effect to fold over

param state

Initial state

param fold

Folder function

returns

The result of the fold operation

method Eff<RT, S> FoldWhile <RT, S, A> (this Eff<RT, A> ma, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

where RT : struct

Fold over the effect repeatedly until the effect fails or the predicate returns false

Parameters

type RT

Runtime

type S

State type

type A

Bound value type

param ma

Effect to fold over

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns false, the fold ends

returns

The result of the fold operation

method Eff<RT, S> FoldUntil <RT, S, A> (this Eff<RT, A> ma, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

where RT : struct

Fold over the effect repeatedly until the effect fails or the predicate returns true

Parameters

type RT

Runtime

type S

State type

type A

Bound value type

param ma

Effect to fold over

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns true, the fold ends

returns

The result of the fold operation

method Eff<S> Fold <S, A> (this Eff<A> ma, Schedule schedule, S state, Func<S, A, S> fold) Source #

Fold over the effect repeatedly until the schedule expires or the effect fails

Parameters

type S

State type

type A

Bound value type

param ma

Effect to fold over

param schedule

Scheduler that controls the number of folds and the delay between each fold iteration

param state

Initial state

param fold

Folder function

returns

The result of the fold operation

method Eff<S> FoldWhile <S, A> (this Eff<A> ma, Schedule schedule, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

Fold over the effect repeatedly until the schedule expires, the effect fails, or the predicate returns false

Parameters

type S

State type

type A

Bound value type

param ma

Effect to fold over

param schedule

Scheduler that controls the number of folds and the delay between each fold iteration

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns false, the fold ends

returns

The result of the fold operation

method Eff<S> FoldUntil <S, A> (this Eff<A> ma, Schedule schedule, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

Fold over the effect repeatedly until the schedule expires, the effect fails, or the predicate returns true

Parameters

type S

State type

type A

Bound value type

param ma

Effect to fold over

param schedule

Scheduler that controls the number of folds and the delay between each fold iteration

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns true, the fold ends

returns

The result of the fold operation

method Eff<S> Fold <S, A> (this Eff<A> ma, S state, Func<S, A, S> fold) Source #

Fold over the effect repeatedly until the effect fails

Parameters

type S

State type

type A

Bound value type

param ma

Effect to fold over

param state

Initial state

param fold

Folder function

returns

The result of the fold operation

method Eff<S> FoldWhile <S, A> (this Eff<A> ma, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

Fold over the effect repeatedly until the effect fails or the predicate returns false

Parameters

type S

State type

type A

Bound value type

param ma

Effect to fold over

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns false, the fold ends

returns

The result of the fold operation

method Eff<S> FoldUntil <S, A> (this Eff<A> ma, S state, Func<S, A, S> fold, Func<A, bool> pred) Source #

Fold over the effect repeatedly until the effect fails or the predicate returns true

Parameters

type S

State type

type A

Bound value type

param ma

Effect to fold over

param state

Initial state

param fold

Folder function

param pred

Predicate function - when this returns true, the fold ends

returns

The result of the fold operation

class EffExtensions Source #

Methods

method Eff<RT, A> Repeat <RT, A> (this Eff<RT, A> ma) Source #

where RT : struct

Keeps repeating the computation until it fails

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> Repeat <A> (this Eff<A> ma) Source #

Keeps repeating the computation until it fails

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> Repeat <RT, A> (this Eff<RT, A> ma, Schedule schedule) Source #

where RT : struct

Keeps repeating the computation until it fails

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> Repeat <A> (this Eff<A> ma, Schedule schedule) Source #

Keeps repeating the computation until it fails

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RepeatWhile <RT, A> (this Eff<RT, A> ma, Func<A, bool> predicate) Source #

where RT : struct

Keeps repeating the computation until it fails or the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RepeatWhile <A> (this Eff<A> ma, Func<A, bool> predicate) Source #

Keeps repeating the computation until it fails or the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RepeatWhile <RT, A> (this Eff<RT, A> ma, Schedule schedule, Func<A, bool> predicate) Source #

where RT : struct

Keeps repeating the computation until it fails or the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RepeatWhile <A> (this Eff<A> ma, Schedule schedule, Func<A, bool> predicate) Source #

Keeps repeating the computation until it fails or the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RepeatUntil <RT, A> (this Eff<RT, A> ma, Func<A, bool> predicate) Source #

where RT : struct

Keeps repeating the computation until it fails or the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RepeatUntil <A> (this Eff<A> ma, Func<A, bool> predicate) Source #

Keeps repeating the computation until it fails or the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RepeatUntil <RT, A> (this Eff<RT, A> ma, Schedule schedule, Func<A, bool> predicate) Source #

where RT : struct

Keeps repeating the computation until it fails or the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RepeatUntil <A> (this Eff<A> ma, Schedule schedule, Func<A, bool> predicate) Source #

Keeps repeating the computation until it fails or the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

class EffExtensions Source #

Methods

method Eff<RT, A> Retry <RT, A> (this Eff<RT, A> ma) Source #

where RT : struct

Keeps retrying the computation

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> Retry <A> (this Eff<A> ma) Source #

Keeps retrying the computation

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> Retry <RT, A> (this Eff<RT, A> ma, Schedule schedule) Source #

where RT : struct

Keeps retrying the computation, until the scheduler expires

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> Retry <A> (this Eff<A> ma, Schedule schedule) Source #

Keeps retrying the computation, until the scheduler expires

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RetryWhile <RT, A> (this Eff<RT, A> ma, Func<Error, bool> predicate) Source #

where RT : struct

Keeps retrying the computation until the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RetryWhile <A> (this Eff<A> ma, Func<Error, bool> predicate) Source #

Keeps retrying the computation until the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RetryWhile <RT, A> (this Eff<RT, A> ma, Schedule schedule, Func<Error, bool> predicate) Source #

where RT : struct

Keeps retrying the computation, until the scheduler expires, or the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RetryWhile <A> (this Eff<A> ma, Schedule schedule, Func<Error, bool> predicate) Source #

Keeps retrying the computation, until the scheduler expires, or the predicate returns false

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RetryUntil <RT, A> (this Eff<RT, A> ma, Func<Error, bool> predicate) Source #

where RT : struct

Keeps retrying the computation until the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RetryUntil <A> (this Eff<A> ma, Func<Error, bool> predicate) Source #

Keeps retrying the computation until the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<RT, A> RetryUntil <RT, A> (this Eff<RT, A> ma, Schedule schedule, Func<Error, bool> predicate) Source #

where RT : struct

Keeps retrying the computation, until the scheduler expires, or the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

method Eff<A> RetryUntil <A> (this Eff<A> ma, Schedule schedule, Func<Error, bool> predicate) Source #

Keeps retrying the computation, until the scheduler expires, or the predicate returns true

Parameters

type RT

Runtime

type A

Computation bound value type

param schedule

Scheduler strategy for repeating

param ma

Computation to repeat

returns

The result of the last invocation of ma

class EffExtensions Source #

Methods

method Aff<R> Use <H, R> (this Eff<H> Acq, Func<H, Aff<R>> Use) Source #

where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Aff<RT, R> Use <RT, H, R> (this Eff<H> Acq, Func<H, Aff<RT, R>> Use) Source #

where RT : struct, HasCancel<RT>
where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Eff<R> Use <H, R> (this Eff<H> Acq, Func<H, Eff<R>> Use) Source #

where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Eff<RT, R> Use <RT, H, R> (this Eff<H> Acq, Func<H, Eff<RT, R>> Use) Source #

where RT : struct, HasCancel<RT>
where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Aff<RT, R> Use <RT, H, R> (this Eff<RT, H> Acq, Func<H, Aff<R>> Use) Source #

where RT : struct, HasCancel<RT>
where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Aff<RT, R> Use <RT, H, R> (this Eff<RT, H> Acq, Func<H, Aff<RT, R>> Use) Source #

where RT : struct, HasCancel<RT>
where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Eff<RT, R> Use <RT, H, R> (this Eff<RT, H> Acq, Func<H, Eff<R>> Use) Source #

where RT : struct, HasCancel<RT>
where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource

method Eff<RT, R> Use <RT, H, R> (this Eff<RT, H> Acq, Func<H, Eff<RT, R>> Use) Source #

where RT : struct, HasCancel<RT>
where H : IDisposable

Safely use a disposable resource

Parameters

param Acq

Acquire resource

param Use

Use resource