| Home | Trees | Index | Help |  | 
|---|
| Package kiwi :: Module tasklet :: Class WaitCondition | 
 | 
object --+
         |
        WaitCondition
WaitForCall,
    WaitForIdle,
    WaitForIO,
    WaitForMessages,
    WaitForProcess,
    WaitForSignal,
    WaitForTasklet,
    WaitForTimeoutBase class for all wait-able condition objects.
WaitConditions are used in a yield statement inside tasklets body for specifying what event(s) it should wait for in order to receive control once more.| Method Summary | |
|---|---|
| Prepare the wait condition to receive events. | |
| Stop the wait condition from receiving events. | |
| Method Details | 
|---|
| arm(self, tasklet)Prepare the wait condition to receive events.When a wait condition receives the event it is waiting for, it should call the method wait_condition_firedof the tasklet with 
  the wait condition as argument. The method returns True or False; if it 
  returns True, it means the WaitCondition object must "rearm" 
  itself (continue to monitor events), otherwise it should disarm.
 | 
| disarm(self)Stop the wait condition from receiving events.
 | 
| Home | Trees | Index | Help |  | 
|---|
| Generated by Epydoc 2.1 on Fri Mar 23 15:56:54 2007 | http://epydoc.sf.net |