Inject a dispatcher rather than hardcoding `Dispatchers.IO`, for example via a dispatcher provider passed to the class. Production binds the real dispatcher and tests bind a test dispatcher, letting `withContext` and scopes run deterministically under coroutine test control.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Kotlin Coroutines?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-kotlin-coroutines-b24e3c45)
Inject a dispatcher rather than hardcoding `Dispatchers.IO`, for example via a dispatcher provider passed to the class. Production binds the real dispatcher and tests bind a test dispatcher, letting `withContext` and scopes run deterministically under coroutine test control.