coroutineContext
Override the coroutine context for the engine actor and helper coroutines.
Default: SupervisorJob() + Dispatchers.Default.
Platform note on Dispatchers.Default:
JVM / Android: backed by a shared work-stealing pool sized to
max(2, Runtime.availableProcessors() - 1). Suitable for CPU-bound coding/decoding.iOS / native: backed by a fixed multi-threaded worker pool sized to
Runtime.availableProcessors()(kotlinx.coroutines ≥ 1.7's "new memory model" default). The engine's actor invariant (single-writer, see ADR-002) is preserved regardless of pool size — the actor channel serialises writes itself.
Pass a SupervisorJob in your context if you need cancellation control independent of the SDK; the SDK does not install one for you when you override this.
// Hilt / lifecycle-scoped:
.coroutineContext(viewModelScope.coroutineContext + SupervisorJob())
// Tests:
.coroutineContext(testScope.backgroundScope.coroutineContext)