[][src]Module sync_tokens::completion_token

Contains structs to assist in waiting for a task to reach a certain state. See CompletionToken or sync-tokens for an example.

Structs

Completable

Allows unblocking a task that called await on a CompletionToken

CompletionToken

Allows waiting for a task to reach a certain state. When calling await, the task waits for the corresponding Completable's complete method to be called.