I am trying to do a call ```resourcesVfs[fileName]...
# korge
d
I am trying to do a call
Copy code
resourcesVfs[fileName].readString()
from a non suspending function, in common code. I can wrap it in runBlockingNoSuspensions, which works on JVM...but not on JS. What is the expected way to do this? (I cannot make the function a suspend function)
s
If you want to call it synchronously, I'm afraid there is no way. If you can do it async, just wrap suspend code into
GlobalScope.launch { ... }
, for example
d
hmm, thanks, not ideal...but will do. ­čśë