Discore
Show / Hide Table of Contents

Method WaitUntilStoppedAsync

| Improve this Doc View Source

WaitUntilStoppedAsync(CancellationToken?)

Returns a task that completes when this shard is stopped either normally or from an error.

Declaration
public Task WaitUntilStoppedAsync(CancellationToken? cancellationToken = null)
Parameters
Type Name Description
CancellationToken? cancellationToken

A token to cancel the wait. Will not close the shard on cancellation.

Returns
Type Description
Task
Exceptions
Type Condition
OperationCanceledException

Thrown if the passed cancellation token is cancelled.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX