Package zeroinstall :: Package support :: Module tasks :: Class IdleBlocker
[frames] | no frames]

Class IdleBlocker

source code

object --+    
         |    
   Blocker --+
             |
            IdleBlocker

An IdleBlocker blocks until a task starts waiting on it, then immediately triggers. An instance of this class is used internally when a Task yields None.

Instance Methods
 
add_task(self, task)
Also calls trigger.
source code

Inherited from Blocker: __init__, __repr__, __str__, remove_task, trigger

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables

Inherited from Blocker: exception

Properties

Inherited from object: __class__

Method Details

add_task(self, task)

source code 

Also calls trigger.

Parameters:
Overrides: Blocker.add_task