Is anyone consuming Kotlin coroutines or Flows as ...
# javascript
a
Is anyone consuming Kotlin coroutines or Flows as callbacks from a real JS or TS (not Kotlin/JS) codebase? Any tips, hints, code snippets, etc? Trying to understand: • what scopes to use (is GlobalScope actually ok?!) • how folks are handling cancellations, • what a TS-friendly interface looks like that supports
@JsExport
, and • if there's any automated way to convert coroutines/flows to callbacks
g
(Interested in this topic. Just started to wrap coroutines in Promise for JS, with GlobalScope, really not sure if it's ok...)
Did you made some progress on those topics?