Expand description
The Runtime module is the interface for crate::component::Component to access shared resources. These include thread pool, memory allocators and other shared resources.
The Runtime holds the primary CancellationToken
which can be used to terminate all attached
crate::component::Component
.
We expect in the future to offer topologically aware thread and memory resources, but for now the set of resources is limited to the thread pool and cancellation token.
Notes: We will need to do an evaluation on what is fully public, what is pub(crate) and what is private; however, for now we are exposing most objects as fully public while the API is maturing.
Structsยง
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.