//workflow/com.squareup.workflow1/Worker/Companion/fromNullable
fromNullable¶
[jvm]
Content
inline fun <OutputT> fromNullable(noinline block: suspend () -> OutputT?): Worker<OutputT>
More info
Creates a Worker from a function that returns a single value. The worker will emit the value if and only if the value is not null, then finish.
The returned Worker will equate to any other workers created with any of the Worker builder functions that have the same output type.