This one... ignore the line before yield(). My str...
# coroutines
o
This one... ignore the line before yield(). My struggle is with inputFunction() which is functional type - in this case it is (Segment) -> Segemnt So... and question is because that it can be anything, how can I stick there suspending function which might take time to accomplish. Problem is that I don't think you can have functional type like v = suspend (Segment) -> Segment as then I can't assign it to anything, as Kotlin does not support such functional references