docs(tvix/eval): suggested layout adjustment to VM loop diagram

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>
This commit is contained in:
Adam Joseph 2023-03-11 02:19:55 -08:00 committed by tazjin
parent 466e6dc265
commit 32999cb6f6

View file

@ -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]