Open neworld opened 3 years ago
Thank you!
I need to do some research here, but I'll back.
Maybe it could be an even wider feature request, not only a special mode for ki, but also a special mode for any other Kotlin script, I also interested in this feature and in the context of .kts files too. Should I create a feature request on kotlin issue tracker?
Any updates on this?
I am considering kotlin and coroutines as an inseparable couple. Would be nice to have a super-easy way to test them. For the best experience, I am missing few features:
@file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
. For example:coroutines
or:c
. Or support parameters, likeki --coroutines
. I don't mind if coroutines will be included by default.runBlocking { flowOf(42).first() }
. But would be nice to be able write something like that:This could work as a special mode enabled with
:coroutines
along with imported packages or could be another command like:suspend
or:s
which toggles suspend mode on/off.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$2@5863ef93
ctrl-C
. It could be very useful if a never-ending coroutine was launched by accident.