expect method

Future<T> expect(
  1. String msg
)

Unwraps an option, yielding the content of a Some.

Throws an Exception if the value is a None, with the passed message.

Implementation

Future<T> expect(String msg) => then((v) => v.expect(msg));