'pydoc gevent.event.Event' says > Help on method wait in gevent.event.Event: > > gevent.event.Event.wait = wait(self, timeout=None) unbound gevent.event.Event > method > Block until the internal flag is true. > If the internal flag is true on entry, return immediately. Otherwise, > block until another thread calls :meth:`set` to set the flag to true, > or until the optional timeout occurs. > > When the *timeout* argument is present and not ``None``, it should be a > floating point number specifying a timeout for the operation in seconds > (or fractions thereof). > > Return the value of the internal flag (``True`` or ``False``).
Signed-off-by: Isaku Yamahata <[email protected]> --- ryu/lib/hub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ryu/lib/hub.py b/ryu/lib/hub.py index ea935b7..44e5fea 100644 --- a/ryu/lib/hub.py +++ b/ryu/lib/hub.py @@ -120,3 +120,5 @@ if HUB_TYPE == 'eventlet': self._wait() except Timeout: pass + + return self._cond -- 1.7.10.4 ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
