Go to the latest version of this document.

# ``twisted`.`spread`.`publish``

module documentation
(source)

Persistently cached objects for PB.

Maintainer: Glyph Lefkowitz

Future Plans: None known.

Class | `Publishable` | An object whose cached state persists across sessions.
Class | `RemotePublished` | The local representation of remote Publishable object.
Function | `whenReady` | Wrap a deferred returned from a pb method in another deferred that expects a RemotePublished as a result. This will allow you to wait until the result is really available.
Function | `_pubReady` | (internal)

def whenReady(d): (source)

Wrap a deferred returned from a pb method in another deferred that expects a RemotePublished as a result. This will allow you to wait until the result is really available.

Idiomatic usage would look like:

        publish.whenReady(serverObject.getMeAPublishable()).addCallback(lookAtThePublishable)

def _pubReady(result, d2): (source)

(internal)