Consume

class Consume(val consumer: suspend (Flow<String>) -> Unit) : Redirect

Alternative to CAPTURE allowing to consume without delay a stream without storing it in memory, and so not returned at the end of process invocation.

See also

's consumer argument to consume CAPTURE content without delay.

Constructors

Link copied to clipboard
constructor(consumer: suspend (Flow<String>) -> Unit)

Properties

Link copied to clipboard
val consumer: suspend (Flow<String>) -> Unit