Type Alias: JobHandler<A, R>
Opt-In Subpath
The Effect API is an opt-in subpath (@camunda8/orchestration-cluster-api/effect) and requires the optional effect peer dependency. The main . entry stays Promise-based and pulls in zero Effect at runtime.
type JobHandler<A, R> = (job) => Effect.Effect<A, JobError, R>;
A job handler: consumes a Job, produces completion variables or a JobError.
Type Parameters
A
A extends CompleteVars
R
R
Parameters
job
Returns
Effect.Effect<A, JobError, R>