map<A, B> function

TaskOption<B> Function(TaskOption<A> ) map<A, B>(
  1. B onSome(
    1. A
    )
)

Implementation

TaskOption<B> Function(
  TaskOption<A>,
) map<A, B>(
  B Function(A) onSome,
) =>
    (taskOption) => () => taskOption().then(
          O.map(onSome),
        );