Skip to content

Instantly share code, notes, and snippets.

@rssh
Created November 15, 2021 07:55
Show Gist options
  • Save rssh/24fd3233320a8bc54e4dbc0c3a0c22e0 to your computer and use it in GitHub Desktop.
Save rssh/24fd3233320a8bc54e4dbc0c3a0c22e0 to your computer and use it in GitHub Desktop.
we can have awaits with timeout
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