android-components / mozilla.components.concept.fetch / Request / Body / useStream

useStream

fun <R> useStream(block: (InputStream) -> R): R (source)

Executes the given block function on the body's stream and then closes it down correctly whether an exception is thrown or not.