![]() |
Smalltalk/X WebserverDocumentation of class 'AbstractBackgroundJob': |
|
Class: AbstractBackgroundJobInheritance:Object | +--AbstractBackgroundJob | +--BackgroundJob | +--BackgroundPeriodicalJob | +--BackgroundQueueProcessingJob
Description:Ab AbstractBackgroundJob is a base superclass for any kind of background processing job. Possible uses include (but not limited to): copying files, syntax higlighting, live searching, autosave, etc. See subclasses for various form of background processing. A task to be processed in a background is given to instances in a form of a block or a message send. The background task must be then started by sending a #start message to the instance of the job. A job may be restarted any time by sending #restart or terminated by sending #stop. Sending #start to already started job does nothing. Implementation note: The the task is actually processed in a separate, exclusive worker thread, so an explicit synchronization have to be done iff the task accesses possibly shared data. The worker exists only iff the job is actually running. When the task is finished, worker thread terminates. [instance variables:] name <String|nil> A user friendly name of a job, useful for identifing job's thread in process list. job <Block|MessageSend> A task to perform in background. priority<Integer> A priority of worker thread. Defaults to Processor userBackgroundPriority. thread <Process|nil> The worker thread running <Boolean> Boolean value indicating whether tasks already started or not. Related information:BackgroundJob BackgroundQueueProcessingJob BackgroundPeriodicalJob Tools::CodeHighlightingService (uses this class) Class protocol:instance creation
Instance protocol:accessing
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 04 Jun 2023 16:48:42 GMT
|