From 647bf244f12e29623195106bf648c73d5ac823ad Mon Sep 17 00:00:00 2001 From: Victor Adossi Date: Fri, 6 Jun 2025 22:27:53 +0900 Subject: [PATCH] fix: async indicator in canon yield This commit fixes the variable name in the python code that seems to be referencing whether it's an *async* yield rather than a *sync* yield, but is written as 'sync'. Signed-off-by: Victor Adossi --- design/mvp/CanonicalABI.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/design/mvp/CanonicalABI.md b/design/mvp/CanonicalABI.md index 290e8d17..8f47309c 100644 --- a/design/mvp/CanonicalABI.md +++ b/design/mvp/CanonicalABI.md @@ -3424,10 +3424,10 @@ validation specifies: Calling `$f` calls `Task.yield_` to allow other tasks to execute: ```python -async def canon_yield(sync, task): +async def canon_yield(async_, task): trap_if(not task.inst.may_leave) - trap_if(task.opts.callback and not sync) - event_code,_,_ = await task.yield_(sync) + trap_if(task.opts.callback and not async_) + event_code,_,_ = await task.yield_(async_) match event_code: case EventCode.NONE: return [0]