handle
fun <T> handle(type: JobType<T>, handler: JobHandler<T>, retry: RetryPolicy? = null, timeout: Duration? = null)
Binds a JobHandler object to type: the form for handlers with dependencies or their own unit tests. retry overrides defaultRetry and timeout overrides defaultTimeout for this kind; see JobRegistry.handle for the timeout semantics.
fun <T> handle(type: JobType<T>, retry: RetryPolicy? = null, timeout: Duration? = null, block: suspend JobContext.(T) -> Unit)
Binds a suspend lambda to type. Same semantics as the object form; retry overrides defaultRetry and timeout overrides defaultTimeout for this kind.