ap<B> method

  1. @override
Task<B> ap<B>(
  1. covariant Task<B Function(A a)> a
)
override

Apply the function contained inside a to change the value of type A to a value of type B.

Implementation

@override
Task<B> ap<B>(covariant Task<B Function(A a)> a) =>
    Task(() => a.run().then((f) => run().then((v) => f(v))));