@epikodelabs/streamix / coroutines/src/public-api / computeScript
Function: computeScript()
computeScript<
T,R>(script):ComputeRunner<T,R>
Defined in: projects/libraries/streamix/coroutines/src/lib/factories/compute.ts:67
Creates a compute runner from an existing CoroutineScript.
This is useful when a script should be pooled for throughput instead of run through coroutine()'s single dedicated worker.
Type Parameters
T
T = any
R
R = any
Parameters
script
CoroutineScript<T, R>
Returns
ComputeRunner<T, R>