coros: remove invalid comment
This commit is contained in:
@@ -196,13 +196,11 @@ class event(object):
|
|||||||
>>> api.sleep(0)
|
>>> api.sleep(0)
|
||||||
received stuff
|
received stuff
|
||||||
"""
|
"""
|
||||||
# why is waiter not used?
|
|
||||||
if waiter in self._waiters:
|
if waiter in self._waiters:
|
||||||
del self._waiters[waiter]
|
del self._waiters[waiter]
|
||||||
# XXX This does not check that waiter still waits when throw actually happens
|
# XXX This does not check that waiter still waits when throw actually happens
|
||||||
# XXX and therefore is broken (see how send() deals with this)
|
# XXX and therefore is broken (see how send() deals with this)
|
||||||
api.get_hub().schedule_call(
|
api.get_hub().schedule_call(0, waiter.throw, Cancelled())
|
||||||
0, waiter.throw, Cancelled())
|
|
||||||
|
|
||||||
def send(self, result=None, exc=None):
|
def send(self, result=None, exc=None):
|
||||||
"""Makes arrangements for the waiters to be woken with the
|
"""Makes arrangements for the waiters to be woken with the
|
||||||
|
Reference in New Issue
Block a user