swap method

Async<Ok<T>> swap()

Implementation

@pragma('vm:prefer-inline')
Async<Ok<T>> swap() => unwrap().map(Ok.new);