foundit/Piped — pull request #26 by nkvoll (2012-02-15 10:58:57+00:00)
Title: Timeouts

Features:

- "piped.event.Event.wait_until_fired()" now takes an optional "timeout" argument.
If the event has not fired before the timeout is reached, a
"piped.exceptions.TimeoutError" is raised. The default timeout of ``None`` means
no timeout.

- "InstanceDependency", "ResourceDependency" and "DependencyMap" in
"piped.dependencies" now has support for a timeout keyword argument to
".wait_for_resource()". If the resource is not available before the timeout
is reached, a "piped.exceptions.TimeoutError" is raised.

Backwards incompatible

- "piped.dependencies.DependencyMap.__in__" has new semantics and now returns
whether the map contains a dependency, not whether it contains an available
dependency. The old behaviour is available as "dependency_map.is_available()".