Internet Direct (Indy)
Home
PreviousUpNext
TIdTask Class

Implements an executable task created for client connections to a multi-threaded server.

Pascal
TIdTask = class(TObject);

TIdTask is a TObject descendant that implements an executable task created for client connections to a multi-threaded server. 

TIdTask can be used with a Thread or a Fiber that controls execution of the task. The Thread or Fiber (referred to as a Yarn) is an abstraction used in TIdScheduler to mask the differences between the APIs and the implementation details. 

TIdTask introduces protected methods that allow the task execute the associated event handlers for the Thread or the Fiber that controls the running task. 

TIdTask also provides a Data property that can be used to store a user-specified object instance required for the executing task.

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.