Unwraps a result, yielding the content of an Ok.
Ok
Throws an Exception if the value is an Err, with the passed message.
Exception
Err
Future<T> expect(String msg) => then((result) => result.expect(msg));