Created
November 15, 2021 07:55
-
-
Save rssh/24fd3233320a8bc54e4dbc0c3a0c22e0 to your computer and use it in GitHub Desktop.
we can have awaits with timeout
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
async[FutureWithDeadline] { | |
summon[DeadlineContext].setTimeout(100.millis) | |
await(FutureSleep(1000.millis)) | |
x = 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment