Task<S, F> constructor

Task<S, F>(
  1. FutureOr<Res<S, F>> run()
)

A deferred operation that produces a Result each time it is run.

Nothing happens until run, and every call runs the operation again.

Implementation

Task(FutureOr<Res<S, F>> Function() run)
  : this._(t.Task(run as FutureOr<Result<S, F>> Function()));