create

Creates an immutable instance of ResumableJob.

Parameters

JobInput

the type of job input

ResultHandlerInput

the type of job out put which will be passed to the result handler

ResultHandlerOutput

the type of the

fun <JobInput, ResultHandlerInput, ResultHandlerOutput> create(jobInput: JobInput, job: (JobInput) -> ResultHandlerInput, resumingWorker: Worker, awaitResumingJob: Boolean, resumingJob: (ResultHandlerInput) -> ResultHandlerOutput): ResumableJob<JobInput, ResultHandlerInput, ResultHandlerOutput>