CLOVIS05/30/2020, 3:07 PM
for JS, and an equivalent for other platforms? I'm making a library to access a web service, and it doesn't feel right to add all of those functions by hand, I guess there's a better way?
Sean Keane05/30/2020, 3:37 PM
r4zzz4k05/30/2020, 5:52 PM
If I understand correctly, there is no ‘nice' way to call suspend functions from JS, Java & other languages.At least Kotlin/Native would come with a way to access suspend functions out of the box from Objective-C / Swift, as these would translate to usual methods with continuation lambdas. I don't know if similar is planned to be implemented for Kotlin/JVM or Kotlin/JS though.
Would it be possible to have a compiler plugin/code generation thing that would create an equivalent of each public suspend function, that wraps it into aSure, though I don't know any ready-to-use solution for that. Compiler plugin sounds more reasonable solution, but as you may know, API isn't stable and won't become such in 1.4.for JS, and an equivalent for other platforms?
CLOVIS05/30/2020, 7:09 PM
r4zzz4k05/30/2020, 7:48 PM
CLOVIS05/30/2020, 8:29 PM