Valutazione attuale: 0 / 5

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

hb_idleState()

 

Evaluates a single background task and calls the garbage collector.

 

Syntax

 

hb_idleState()

 

Argument(s)

 

None

 

Description

 

hb_idleState() requests the garbage collection and executes a single background task defined by the codeblock passed with hb_idleAdd() function. Every call to this function evaluates a different task in the order of task creation. There are no arguments passed during a codeblock evaluation.

 

This function can be safely called even if there are no background tasks defined.

 

Example(s)

 

nTask1 := hb_idleAdd( {|| SayTime() } )
nTask2 := hb_idleAdd( {|| SaveScreen() } )
DO WHILE ! bFinished
  bFinished := DoSomethingVeryImportant()
  hb_idleState()
ENDDO
cbAction := hb_idleDel( nTask1 )
hb_idleDel( nTask2 )

 

Status

 

Ready

 

Compliance

 

Harbour extension similar to ft_IAmIdle() function available in NanForum library.

 

Platform(s)

 

This is available on all platforms

 

See also

hb_idleAdd(), hb_idleDel()