executeProtectedAsync<S>  function 
 
Async version of executeProtected
Implementation
FutureResult<S, Object> executeProtectedAsync<S>(
    Future<S> Function() func) async {
  assert(S is! Result, "Use executeProtectedAsyncResult instead");
  try {
    return Ok(await func());
  } catch (e) {
    return Err(e);
  }
}