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:
parent
466e6dc265
commit
32999cb6f6
1 changed files with 11 additions and 11 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue