kombu.utils.functional

kombu.utils.functional.maybe_promise(value)

Evaluates if the value is a promise.

class kombu.utils.functional.promise(fun, *args, **kwargs)

A promise.

Evaluated when called or if the evaluate() method is called. The function is evaluated on every access, so the value is not memoized (see mpromise).

Overloaded operations that will evaluate the promise:
__str__(), __repr__(), __cmp__().
evaluate()

Previous topic

String Encoding - kombu.utils.encoding

Next topic

Finalize - kombu.utils.finalize

This Page