Internet Direct (Indy) Version 9.0.1 Beta
TIdAntiFreezeBase.ShouldUse
Indicates that a TIdAntiFreezeBase descendant is in use, and processor cycles should be yielded to the main thread.

class function ShouldUse: boolean;
Returns
Boolean - True when the calling client is in the main thread and an active TIdAntiFreezeBase descendant is in use.

Description
ShouldUse is a Boolean class function that indicates when a TIdAntiFreezeBase descendant is in use in an application, and that the component should yield to the main thread of execution. ShouldUse will return True when all of the following conditions are also True:

ShouldUse is called from TIdAntiFreezeBase.Sleep, as well as TIdTCPConnection descendants that implement connection timeout features like TIdTCPClient and TIdTCPServer.