t.i.d._ConcurrencyPrimitive(object) : class documentation

Part of twisted.internet.defer View Source View In Hierarchy

Known subclasses: twisted.internet.defer.DeferredLock, twisted.internet.defer.DeferredSemaphore

No class docstring
Method __init__ Undocumented
Method run Acquire, run, release.
Method _releaseAndReturn Undocumented
def __init__(self): (source)
Undocumented
def _releaseAndReturn(self, r): (source)
Undocumented
def run(*args, **kwargs): (source)
Acquire, run, release.

This function takes a callable as its first argument and any number of other positional and keyword arguments. When the lock or semaphore is acquired, the callable will be invoked with those arguments.

The callable may return a Deferred; if it does, the lock or semaphore won't be released until that Deferred fires.

ReturnsDeferred of function result.
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.