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