Fix to schedule() pseudo-code by Yuval Greenfield.
This commit is contained in:
parent
0ccf2a54eb
commit
a00d4d1343
|
@ -486,8 +486,9 @@ Examples
|
|||
def stop(self):
|
||||
self.running = False
|
||||
|
||||
def schedule(self, coroutine, stack=(), value=None, *exc):
|
||||
def schedule(self, coroutine, stack=(), val=None, *exc):
|
||||
def resume():
|
||||
value = val
|
||||
try:
|
||||
if exc:
|
||||
value = coroutine.throw(value,*exc)
|
||||
|
|
Loading…
Reference in New Issue