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

Class OutputBlocker

source code

Blocker --+
          |
         OutputBlocker

Triggers when os.write(stream) would not block.

Instance Methods
 
__init__(self, stream, name) source code
 
add_task(self, task)
Called by the schedular when a Task yields this Blocker.
source code
 
remove_task(self, task)
Called by the schedular when a Task that was waiting for this blocker is resumed.
source code

Inherited from Blocker: __del__, __repr__, __str__, trigger

Class Variables

Inherited from Blocker: exception

Method Details

__init__(self, stream, name)
(Constructor)

source code 
Overrides: Blocker.__init__

add_task(self, task)

source code 

Called by the schedular when a Task yields this Blocker. If you override this method, be sure to still call this method with Blocker.add_task(self)!

Overrides: Blocker.add_task
(inherited documentation)

remove_task(self, task)

source code 

Called by the schedular when a Task that was waiting for this blocker is resumed.

Overrides: Blocker.remove_task
(inherited documentation)