You cannot, because this function already have another receiver
This is one of the main reasons why we need extension function with multiple receivers, please vote and add your use cases
https://youtrack.jetbrains.com/issue/KT-10468
e
elizarov
09/27/2018, 6:41 AM
It would be better to have proper type-classes. But integration of channels with structured concurrency is an open topic nonetheless. Work in progress. We would have this problem in the new design.