This change adds a DedicatedExecutor, known as the computer_executor into the DalContext and available in the lib/si-layer-cache subsystem. Notably this is not used/consumed anywhere other than an additional single Tokio runtime which is instantiated. This single Tokio runtime is shared between a ServicesContext and an instance of LayerDb via the DedicatedExecutor's Clone implementation. Future work will begin to use this executor for its intended purpose: spawning compute-intensive work to run off the primary Tokio runtime.
This change adds a
DedicatedExecutor
, known as thecomputer_executor
into theDalContext
and available in thelib/si-layer-cache
subsystem. Notably this is not used/consumed anywhere other than an additional single Tokio runtime which is instantiated. This single Tokio runtime is shared between aServicesContext
and an instance ofLayerDb
via theDedicatedExecutor
'sClone
implementation. Future work will begin to use this executor for its intended purpose: spawning compute-intensive work to run off the primary Tokio runtime.