-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed dummy interrupt name in cancellable calls examples; added an …
…example of handling only first n interrupts of particular kind
- Loading branch information
Danel Ahman
committed
Jul 25, 2023
1 parent
eb67f5e
commit 91596e8
Showing
5 changed files
with
137 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
operation request : int | ||
operation response : int | ||
|
||
run | ||
promise (request x r s -> | ||
if s > 0 then | ||
send response (x + 42); | ||
r (s - 1) | ||
else | ||
return <<()>> | ||
) at 3 | ||
|
||
run | ||
send request 1; | ||
send request 2; | ||
send request 3; | ||
send request 4; | ||
send request 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters