- Prelude
- use <A, B> (Try<A> computation, Func<A, B> map)
- use <A, B> (Try<A> computation, Func<A, Try<B>> bind)
- use <A, B> (Task<A> computation, Func<A, B> map)
- use <A, B> (Task<A> computation, Func<A, Task<B>> bind)
- use <A, B> (Func<A> generator, Func<A, Task<B>> asyncMap)
- use <A, B> (A disposable, Func<A, Task<B>> asyncMap)
- use <A, B> (Func<A> generator, Func<A, B> f)
- use <A, B> (A disposable, Func<A, B> f)
- tryuse <A, B> (Func<A> disposable, Func<A, B> f)
- tryuse <A, B> (A disposable, Func<A, B> f)
method Try<B> use <A, B> (Try<A> computation, Func<A, B> map) Source #
Use with Try monad in LINQ expressions to auto-clean up disposable items
method Try<B> use <A, B> (Try<A> computation, Func<A, Try<B>> bind) Source #
Use with Try monad in LINQ expressions to auto-clean up disposable items
method Task<B> use <A, B> (Task<A> computation, Func<A, B> map) Source #
Use with Task in LINQ expressions to auto-clean up disposable items
method Task<B> use <A, B> (Task<A> computation, Func<A, Task<B>> bind) Source #
Use with Task in LINQ expressions to auto-clean up disposable items
method Task<B> use <A, B> (Func<A> generator, Func<A, Task<B>> asyncMap) Source #
Functional implementation of the using(...) { } pattern
param | generator | Generator of disposable to use |
param | asyncMap | Inner map function that uses the disposable value |
returns | Result of await asyncMap(generator()) |
method Task<B> use <A, B> (A disposable, Func<A, Task<B>> asyncMap) Source #
Functional implementation of the using(...) { } pattern
param | disposable | Disposable to use |
param | asyncMap | Inner map function that uses the disposable value |
returns | Result of await asyncMap(disposable) |
method B use <A, B> (Func<A> generator, Func<A, B> f) Source #
Functional implementation of the using(...) { } pattern
param | generator | Disposable to use |
param | f | Inner map function that uses the disposable value |
returns | Result of f(generator()) |
method B use <A, B> (A disposable, Func<A, B> f) Source #
Functional implementation of the using(...) { } pattern
param | disposable | Disposable to use |
param | f | Inner map function that uses the disposable value |
returns | Result of f(disposable) |