Topic Path: Symbol Reference > Classes > TIdSchedulerOfThread Class > TIdSchedulerOfThread Methods > NewYarn Method
ContentsIndexHome
PreviousUpNext
TIdSchedulerOfThread.NewYarn Method

Creates the thread-based task for a client connection scheduled in a server.

function NewYarn(
    AThread: TIdThreadWithTask = nil
): TIdYarnOfThread;
Parameters 
Description 
AThread 
Executable task for a client connection. Default value is nil. 

TIdYarnOfThread - Thread-based yarn for the client connections executable task.

NewYarn is a TIdYarnOfThread function used to create the thread-based task for a client connection to a server. 

NewYarn will raise an EIdException exception with the message in RSThreadSchedulerThreadRequired when AThread contains a Nil value. 

The return value for the method is a TIdYarnOfThread instance containing the thread-based yarn for the client connections executable task. 

NewYarn is used in the AcquireYarn method in descendant classes.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.