Represents an asynchronous operation that yields a Result<T, E>.
This is a promise that resolves to Ok(T) if the operation was successful, or Err(E) if there was an error.
Type Parameters
T
The type of the value that is produced by a successful operation.
E
The type of the error that may be produced by a failed operation.
Represents an asynchronous operation that yields a
Result<T, E>. This is a promise that resolves toOk(T)if the operation was successful, orErr(E)if there was an error.