In a multiplatform project, I have a common class with suspend functions. How can I call suspend functions from JavaScript? I could expose a callback version in the common code but I’d like to avoid that. I could also wrap this class in a JS-specific class that exposes Promises like
async { suspendFunction() }.asPromise()
. Is there a more elegant way that doesn’t require wrappers?