legacy-workflow-rx2 / com.squareup.workflow.legacy.rx2 / singleWorker

singleWorker

fun <I : Any, O : Any> singleWorker(block: (I) -> Single<O>): Worker<I, O>
Deprecated: Use com.squareup.workflow.Workflow

Creates a Worker that will pass its input value to block, then subscribe to the returned Single and report the value it emits as the worker result.