Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
navigaid committed Jul 11, 2024
1 parent 9e94ea4 commit 807ab7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slides/syllabus/4-异步逻辑/1-wait-与-wake-slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<br/>

waitlist - `wait`: 保存待处理的消息, `wake`: 将消息取出重新执行
waitlist - `wait`: 保存待处理的消息, `wake`: 将消息取出重新处理
</script></section><section data-markdown><script type="text/template">
## wait

Expand Down Expand Up @@ -117,7 +117,7 @@
Handle->>Counter: msg::send (inc/dec/get)
activate Counter
Note over Handle: MessageSent
Note over Handle: MessageSent {orig_id, sent_id}
Handle-->>Handle: wait()
deactivate Handle
Expand All @@ -126,8 +126,8 @@
Counter-->>Handle_Reply: msg::reply (n)
deactivate Counter
activate Handle_Reply
Note over Handle_Reply: MessageReceived
Handle_Reply->>Handle_Reply: wake(user_msg_id)
Note over Handle_Reply: MessageReceived (n)
Handle_Reply->>Handle_Reply: wake(orig_id)
Handle_Reply-->>Handle: re-execution
deactivate Handle_Reply
Expand Down

0 comments on commit 807ab7f

Please sign in to comment.