Expand description
Contains the Context API, providing a form of a cancellation token to child processes, with the option of falling back to a timeout cancel.
Structsยง
- Context
- An object that is passed around to asynchronous functions that may be used to check if the function it was passed into should perform a graceful termination.
- Handle
- A handle returned from constructing a new
Context
. Used to cancel the context. You can explicitly callcancel
, or, you can simply drop the Handle to cancel the context. - RefContext
- A way to share mutable access to a context. This is useful for context chaining.
RefContext
contains an identical API toContext
.