Documentation
Table of Contents

Method WaitAsync

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

WaitAsync(SpecialistTicket, TimeSpan, CancellationToken)

Waits up to timeout for the specialist of ticket. Returns the offer once it is ready, or null when it is not ready yet. Either hold the call until the offer is ready or the timeout ends, or answer null at once: within its wait, the runtime asks again after WaitPollInterval with the time left. Never wait past the timeout: the runtime ends the call there and counts it as not ready.

Task<SpecialistOffer?> WaitAsync(SpecialistTicket ticket, TimeSpan timeout, CancellationToken cancellationToken)

Parameters

ticket SpecialistTicket

The ticket RequestAsync(SpecialistRequest, CancellationToken) returned.

timeout TimeSpan

How long this wait may take.

cancellationToken CancellationToken

Cancels the wait.

Returns

Task<SpecialistOffer>