match<A, B> function
Implementation
T.Task<B> Function(
TaskOption<A>,
) match<A, B>({
required B onNone,
required B Function(A) onSome,
}) =>
(taskOption) => () => taskOption().then(
O.match(
onNone: onNone,
onSome: onSome,
),
);