Open
Description
kotlinx-io
has a few functions accepting lambdas that in turn should return some value (mainly, in the unsafe API). It was overlooked initially, and with non-local break & continue coming w/ Kotlin 2.1, it's even more likely to mistakenly exit from the lambda without retuning a value via return/break/continue.
As a safety net, such lambda parameters should be marked crossinline
.