At the moment, when writing a class with suspend f...
# multiplatform
j
At the moment, when writing a class with suspend funs, it can't be exported to JS as it doesn't support coroutines. At the moment, the best solution I know of, is to write a proxy class that "remaps" all suspend funcs to promises. As this isn't ideal, is there a better way to do this?
you could probably write a KSP processor to generate those async/promise wrappers, or there are some others in the community who have built similar, e.g. https://kotlinlang.slack.com/archives/C0B8L3U69/p1703152525039009?thread_ts=1703134812.294899&cid=C0B8L3U69
j
Thanks, gonna try that plugin, looks like what II was searching for!