docs: function resolveResult(win, result, resolver) {
    if (result.ok) {
      resolver(result);
    } else {
      const error = result.error || createAbortError(win);
      error.activityResult = result;
      resolver(Promise.reject(error));
    }
  }