How to use coroutine's Flow class from scratch.kts...
# intellij
t
How to use coroutine's Flow class from scratch.kts file ? (I'm not using gradle in this time)
j
I think you need a module implementing the coroutines dependency
In playground you can try it, I don't know if autoimport works, but you can add them manually
t
"Scratches" do'nt refer "ProjectSettings/Libraries", correct?
j
I don't know, sorry
a
Add coroutines to you Gradle module and then "Use classpath of module <module>" in Scratch tab. If it's not a Gradle project, the principle is the same: you should manually add a coroutines dependency to your module first.
t
"Use classpath of module <module>" in Scratch tab.
it's works. thanks!
849 Views