Skip to content

Commit f048984

Browse files
committed
Make callback CABI code a bit more readable
1 parent 50667ed commit f048984

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

design/mvp/CanonicalABI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,14 +2843,14 @@ to do next:
28432843
task.exit()
28442844
return
28452845
case CallbackCode.YIELD:
2846-
await task.yield_(opts.sync)
2846+
await task.yield_(sync = False)
28472847
e = None
28482848
case CallbackCode.WAIT:
28492849
trap_if(not s)
28502850
e = await task.wait_on(s.wait(), sync = False)
28512851
case CallbackCode.POLL:
28522852
trap_if(not s)
2853-
await task.yield_(opts.sync)
2853+
await task.yield_(sync = False)
28542854
e = s.poll()
28552855
if e:
28562856
event, p1, p2 = e

design/mvp/canonical-abi/definitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,14 +1770,14 @@ async def canon_lift(opts, inst, ft, callee, caller, on_start, on_return, on_blo
17701770
task.exit()
17711771
return
17721772
case CallbackCode.YIELD:
1773-
await task.yield_(opts.sync)
1773+
await task.yield_(sync = False)
17741774
e = None
17751775
case CallbackCode.WAIT:
17761776
trap_if(not s)
17771777
e = await task.wait_on(s.wait(), sync = False)
17781778
case CallbackCode.POLL:
17791779
trap_if(not s)
1780-
await task.yield_(opts.sync)
1780+
await task.yield_(sync = False)
17811781
e = s.poll()
17821782
if e:
17831783
event, p1, p2 = e

0 commit comments

Comments
 (0)