convert<S2> method

Task<S2, F> convert<S2>(
  1. S2 onOk(
    1. S ok
    )
)

Converts the success type of the task's result.

Implementation

Task<S2, F> convert<S2>(S2 Function(S ok) onOk) =>
    Task._(_task.convert(onOk));