Internet Direct (Indy)
|
Specifies the interface used to start execution of the yarn and its associated task.
procedure StartYarn( AYarn: TIdYarn; ATask: TIdTask ); virtual; abstract;
Parameters |
Description |
AYarn |
Thread or fiber for the executable task. |
ATask |
Executable task context for the thread or fiber. |
StartYarn is an abstract virtual method in TIdScheduler that specifies the interface used to start execution of a yarn using its associated executable task.
AYarn is a TIdYarn instance the represents the thread or fiber from the scheduler's AcquireYarn method used control execution of the TIdTask instance in ATask.
StartYarn must be implemented in a descendant class to create the appropriate TIdYarn descendant for the scheduler, and to begin execution of the associated task.
Use TerminateYarn to stop execution of a specific yarn and its associated task.
Use TerminateAllYarns to stop execution of all yarns in the ActiveYarns property.
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |