Hello, any recommendations for making api call in ...
# ios
m
Hello, any recommendations for making api call in common code while api call is implemented in ios? Currently we are thinking about interface like this
Copy code
expect fun fetch(result : (String) -> Unit)
However this can lead to freezing issue, since callback can be called on different thread. Any suggestions?
s
Use GCD to dispatch the callback onto the proper thread?