Share via


AgentThread.CreateInternalAsync(CancellationToken) Method

Definition

Creates the thread and returns the thread id. Checks have already been completed in the CreateAsync(CancellationToken) method to ensure that the thread can be created.

protected abstract System.Threading.Tasks.Task<string?> CreateInternalAsync(System.Threading.CancellationToken cancellationToken);
abstract member CreateInternalAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Protected MustOverride Function CreateInternalAsync (cancellationToken As CancellationToken) As Task(Of String)

Parameters

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

The id of the thread that was created if one is available.

Applies to