mapToResult

Maps values in the Flow to successful results, and catches and wraps any exception into a failure result.