output

fun <O> JobInfo.output(type: JobType<*, O>): O?(source)

Reads what the job produced, or null when it has not succeeded yet.

type has to be the one the job was enqueued with; a payload written by a different type reads back as null rather than throwing.

val items = jabbit.getJobInfo(id)?.output(SyncJob)?.items