Alternatively (if you plan to use it mostly in ser...
# coroutines
e
Alternatively (if you plan to use it mostly in serial code, e.g. no intention to do multiple computes concurrently):
Copy code
suspend fun computeInPool(file: File) = run(CommonPool) { compute(file) }