workflow-rx2 / com.squareup.workflow.rx2 / PublisherWorker / <init>

<init>

PublisherWorker()

An convenience implementation of Worker that is expressed in terms of Reactive Streams' Publisher instead of Flow.

If you're using RxJava, Flowable is a Publisher.

Subclassing this is equivalent to just implementing Worker.run directly and calling asFlow on your Publisher.