Share via


RemoveParticipantResult.WaitForEventProcessorAsync(CancellationToken) Method

Definition

public System.Threading.Tasks.Task<Azure.Communication.CallAutomation.RemoveParticipantEventResult> WaitForEventProcessorAsync (System.Threading.CancellationToken cancellationToken = default);
member this.WaitForEventProcessorAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Communication.CallAutomation.RemoveParticipantEventResult>
Public Function WaitForEventProcessorAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of RemoveParticipantEventResult)

Parameters

cancellationToken
CancellationToken

Cancellation Token can be used to set timeout or cancel this WaitForEventProcessor.

Returns

Returns RemoveParticipantEventResult which contains either RemoveParticipantSucceeded event or RemoveParticipantFailed event.

Applies to