Skip to content

Instantly share code, notes, and snippets.

View ericrey85's full-sized avatar

Eric Rey ericrey85

  • Amazon
  • Florida
View GitHub Profile
public class AsyncLazyPipeline<TSource>
{
private Func<Task<TSource>> Expression { get; }
public AsyncLazyPipeline(Func<Task<TSource>> expression)
{
Expression = expression;
}
public Task<TSource> Flatten() => Expression();