https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
h

Howie Nguyen

02/20/2023, 12:50 AM
get this error each time i call a suspend function from my api file in the shared folder.
e

Evegenii Khokhlov

02/20/2023, 8:26 AM
wrap
registerPatient
call in
DispatchQueue.main.async
and make sure that all possible exceptions in Kotlin declared in
@Throws
Copy code
DispatchQueue.main.async {
   try await ApiKt.registerPatient(...)
}
more explanation in your previous question
5 Views