public Task AbortAsync(string errorCode = RequestAbortErrorCode.Failed) => RaceWithPageCloseAsync(_channel.AbortAsync(errorCode));
/// <summary> /// Aborts the route's request. /// </summary> /// <param name="errorCode">Optional error code.</param> /// <returns>A <see cref="Task"/> that completes when the message was sent.</returns> public Task AbortAsync(RequestAbortErrorCode errorCode = RequestAbortErrorCode.Failed) => _channel.AbortAsync(errorCode);