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):
|
def stop(self):
|
||||||
self.running = False
|
self.running = False
|
||||||
|
|
||||||
def schedule(self, coroutine, stack=(), value=None, *exc):
|
def schedule(self, coroutine, stack=(), val=None, *exc):
|
||||||
def resume():
|
def resume():
|
||||||
|
value = val
|
||||||
try:
|
try:
|
||||||
if exc:
|
if exc:
|
||||||
value = coroutine.throw(value,*exc)
|
value = coroutine.throw(value,*exc)
|
||||||
|
|
Loading…
Reference in New Issue