fscom.AsyncEx: Types Modinfo Source  

Asynchronus Tasks Extended

This module contains some simple executor and task types to use in a non-threaded or threaded application.

Types Summary

TEagerSingleThreadedExecutor This executor will execute all tasks immeadiatly in the thread they are submitted.
THookTask Task to execute a function designed like hook functions of BRL.Hook.
TLazySingleThreadedExecutor This executor will execute tasks only if someone calls the Wait method of their TFuture.
TMethodTask Task to call a method of an object with the given parameters.
TSimpleFunctionTask Task to execute a function without parameters.

Types

Type TEagerSingleThreadedExecutor Extends TExecutor
DescriptionThis executor will execute all tasks immeadiatly in the thread they are submitted.
InformationIf you don't want to completely rewrite your code for ?threaded and ?Not threaded mode, you can use this executor to use TTask and TFuture with non-threaded code. It is also useful to execute a list of tasks in a specific thread (e.g. graphics tasks in the main-thread).

Type THookTask Extends TTask
DescriptionTask to execute a function designed like hook functions of BRL.Hook.

Type TLazySingleThreadedExecutor Extends TExecutor
DescriptionThis executor will execute tasks only if someone calls the Wait method of their TFuture.
InformationThis executor can be used to "collect" tasks from a piece of code that submits tasks to a given executor and call / cancel them later.

Type TMethodTask Extends TTask
DescriptionTask to call a method of an object with the given parameters.

Type TSimpleFunctionTask Extends TTask
DescriptionTask to execute a function without parameters.

Module Information

Version1.0
AuthorFrancesco Silvani
Licensezlib/libpng