diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-03-11T10·19-0800 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-03-14T09·56+0000 |
commit | 32999cb6f60ec89099f1f5295038cfeca2fb106a (patch) | |
tree | ab61ccce11f292e1630eff4561e3503938b64402 /tvix | |
parent | 466e6dc2651c3c8536e8570d74bee401c842adb1 (diff) |
docs(tvix/eval): suggested layout adjustment to VM loop diagram r/5994
Change-Id: I5467cd66801ad8fe6c4ec0ae337763f1762cea1c Reviewed-on: https://cl.tvl.fyi/c/depot/+/8252 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Autosubmit: Adam Joseph <adam@westernsemico.com>
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/eval/docs/vm-loop.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tvix/eval/docs/vm-loop.md b/tvix/eval/docs/vm-loop.md index bbe02a0866e5..6266d34709cb 100644 --- a/tvix/eval/docs/vm-loop.md +++ b/tvix/eval/docs/vm-loop.md @@ -200,21 +200,21 @@ suspension (as a result of which control is returned to the outer loop), or until the generator is done and yields a value. ``` - ┏━━━━━━━━━━━━━┓ [Done] + ┏━━━━━━━━━━━━━┓ ◄──┨ return true ┃ ◄───────────────────╮ ┗━━━━━━━━━━━━━┛ │ │ - │ + [Done] │ ╭──────────────────┴─────────╮ - ╭───────┤ inspect generator response │ - │ ╰──────────────────┬─────────╯ - ┏━━━━━━━━┷━━━━━━━━┓ │ -──►┃ gen.resume(msg) ┃ │[Yielded] - ┗━━━━━━━━━━━━━━━━━┛ │ - ▲ ╭──────┴─────╮ - │ [yes] │ same-frame │ - ╰───────────────────┤ request? │ - ╰──────┬─────╯ + │ inspect generator response │◄────────────╮ + ╰──────────────────┬─────────╯ │ + [yielded] │ ┏━━━━━━━━┷━━━━━━━━┓ + │ ┃ gen.resume(msg) ┃◄── + ▼ ┗━━━━━━━━━━━━━━━━━┛ + ╭────────────╮ ▲ + │ same-frame │ │ + │ request? ├────────────────╯ + ╰─────┬──────╯ [yes] ┏━━━━━━━━━━━━━━┓ │ ◄──┨ return false ┃ ◄──────────────────╯ ┗━━━━━━━━━━━━━━┛ [no] |