diesieben07
11/16/2020, 10:58 AMflow
?
For example if I open an IO Stream in the flow {}
builder, how do I clean it up? I can't use onCompletion
, because I don't have the stream available there obviously. If I understand the docs correctly I am not supposed to use try-finally
in the flow {}
builder, correct?flosch
11/16/2020, 11:05 AMcallbackFlow
which has an awaitClose
in its lambda scopediesieben07
11/16/2020, 11:09 AM