Graphics Programs Reference
In-Depth Information
This is an example of the actor design pattern . An actor object is used when you have a
long running task and some code that needs to be executed after it completes. This kind of
object is given the information it needs to perform the task and callbacks to execute when
that task is done. The actor runs on its own thread without any further input and is des-
troyed when it is finished ( Figure 28.8 ) .
Figure 28.8 Actor design pattern
 
Search WWH ::




Custom Search