- Thunk
- NotEvaluated = 0
- Evaluating = 1
- IsSuccess = 2
- IsFailed = 4
- IsCancelled = 8
- HasEvaluated = IsSuccess | IsFailed | IsCancelled
- Flatten <Env, A> (this ThunkAsync<Env, ThunkAsync<Env, A>> mma)
- Flatten <Env, A> (this ThunkAsync<ThunkAsync<Env, A>> mma)
- Flatten <Env, A> (this ThunkAsync<Thunk<Env, A>> mma)
- Flatten <Env, A> (this Thunk<ThunkAsync<Env, A>> mma)
- Flatten <Env, A> (this ThunkAsync<Env, ThunkAsync<A>> mma)
- Flatten <Env, A> (this ThunkAsync<Env, Thunk<Env, A>> mma)
- Flatten <Env, A> (this Thunk<Env, ThunkAsync<Env, A>> mma)
- Flatten <Env, A> (this ThunkAsync<Env, Thunk<A>> mma)
- Flatten <Env, A> (this Thunk<Env, ThunkAsync<A>> mma)
- Flatten <A> (this ThunkAsync<ThunkAsync<A>> mma)
- Flatten <A> (this ThunkAsync<Thunk<A>> mma)
- Flatten <A> (this Thunk<ThunkAsync<A>> mma)
- Flatten <Env, A> (this Thunk<Env, Thunk<Env, A>> mma)
- Flatten <Env, A> (this Thunk<Thunk<Env, A>> mma)
- Flatten <Env, A> (this Thunk<Env, Thunk<A>> mma)
- Flatten <A> (this Thunk<Thunk<A>> mma)
- ThunkAsync <A>
- Lazy (Func<ValueTask<Fin<A>>> fun)
- Lazy (Func<ValueTask<A>> fun)
- Fail (Error error)
- Success (A value)
- Cancelled ()
- Clone ()
- Value ()
- ReValue ()
- Map <B> (Func<A, B> f)
- BiMap <B> (Func<A, B> Succ, Func<Error, Error> Fail)
- MapAsync <B> (Func<A, ValueTask<B>> f)
- BiMapAsync <B> (Func<A, ValueTask<B>> Succ, Func<Error, ValueTask<Error>> Fail)
- ToString ()
- ThunkAsync <Env, A>
- Lazy (Func<Env, ValueTask<Fin<A>>> fun)
- Lazy (Func<Env, ValueTask<A>> fun)
- Fail (Error error)
- Success (A value)
- Cancelled ()
- Value (Env env)
- ReValue (Env env)
- Clone ()
- Map <B> (Func<A, B> f)
- BiMap <B> (Func<A, B> Succ, Func<Error, Error> Fail)
- MapAsync <B> (Func<A, ValueTask<B>> f)
- BiMapAsync <B> (Func<A, ValueTask<B>> Succ, Func<Error, ValueTask<Error>> Fail)
- ToString ()
- Thunk <A>
- Lazy (Func<Fin<A>> fun)
- Fail (Error error)
- Success (A value)
- Cancelled ()
- Value ()
- ReValue ()
- Clone ()
- Map <B> (Func<A, B> f)
- BiMap <B> (Func<A, B> Succ, Func<Error, Error> Fail)
- ToString ()
- Thunk <Env, A>
- Lazy (Func<Env, Fin<A>> fun)
- Fail (Error error)
- Success (A value)
- Cancelled ()
- Value (Env env)
- ReValue (Env env)
- Clone ()
- Map <B> (Func<A, B> f)
- BiMap <B> (Func<A, B> Succ, Func<Error, Error> Fail)
- ToString ()
- ThunkExt
field int NotEvaluated = 0 Source #
field int Evaluating = 1 Source #
field int IsSuccess = 2 Source #
field int IsFailed = 4 Source #
field int IsCancelled = 8 Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this ThunkAsync<Env, ThunkAsync<Env, A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this ThunkAsync<ThunkAsync<Env, A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this ThunkAsync<Thunk<Env, A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this Thunk<ThunkAsync<Env, A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this ThunkAsync<Env, ThunkAsync<A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this ThunkAsync<Env, Thunk<Env, A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this Thunk<Env, ThunkAsync<Env, A>> mma) Source #
method ThunkAsync<Env, A> Flatten <Env, A> (this ThunkAsync<Env, Thunk<A>> mma) Source #
class ThunkAsync <A> Source #
Lazily evaluates an asynchronous function and then memoizes the value Runs at most once
method ThunkAsync<A> Clone () Source #
Clone the thunk
For thunks that were created as pre-failed/pre-cancelled values (i.e. no delegate to run, just in a pure error state), then the clone will copy that state exactly. For thunks that have been evaluated then a cloned thunk will reset the thunk to a non-evaluated state. This also means any thunk that has been evaluated and failed would lose the failed status
returns |
method ThunkAsync<B> BiMapAsync <B> (Func<A, ValueTask<B>> Succ, Func<Error, ValueTask<Error>> Fail) Source #
Functor map
class ThunkAsync <Env, A> Source #
Lazily evaluates an asynchronous function and then memoizes the value Runs at most once
method ThunkAsync<Env, A> Clone () Source #
Clone the thunk
For thunks that were created as pre-failed/pre-cancelled values (i.e. no delegate to run, just in a pure error state), then the clone will copy that state exactly. For thunks that have been evaluated then a cloned thunk will reset the thunk to a non-evaluated state. This also means any thunk that has been evaluated and failed would lose the failed status
returns |
method ThunkAsync<Env, B> BiMapAsync <B> (Func<A, ValueTask<B>> Succ, Func<Error, ValueTask<Error>> Fail) Source #
Functor map
Lazily evaluates an asynchronous function and then memoizes the value Runs at most once
method Thunk<A> Clone () Source #
Clone the thunk
For thunks that were created as pre-failed/pre-cancelled values (i.e. no delegate to run, just in a pure error state), then the clone will copy that state exactly. For thunks that have been evaluated then a cloned thunk will reset the thunk to a non-evaluated state. This also means any thunk that has been evaluated and failed would lose the failed status
returns |
Lazily evaluates an asynchronous function and then memoizes the value Runs at most once
method Thunk<Env, A> Clone () Source #
Clone the thunk
For thunks that were created as pre-failed/pre-cancelled values (i.e. no delegate to run, just in a pure error state), then the clone will copy that state exactly. For thunks that have been evaluated then a cloned thunk will reset the thunk to a non-evaluated state. This also means any thunk that has been evaluated and failed would lose the failed status
returns |
method ThunkAsync<Env, B> MapAsync <Env, A, B> (this Thunk<Env, A> ma, Func<A, ValueTask<B>> f) Source #
Functor async map