arrow-fx-coroutines / arrow.fx.coroutines.stream / Stream / scope

scope

fun scope(): Stream<O>

Introduces an explicit scope.

Scopes are normally introduced automatically, when using bracket or similar operations that acquire resources and run finalizers. Manual scope introduction is useful when using bracketWeak/bracketCaseWeak, where no scope is introduced.

Do you like Arrow?

Arrow Org
<