Fred Bowker
01/06/2022, 3:26 PMhfhbd
01/06/2022, 3:30 PMsuspend
language support, which needs this https://github.com/Kotlin/kotlinx.coroutines libraryFred Bowker
01/06/2022, 3:33 PMdo {
let result = try await getInvites(loggedOnUserId)
invitesEnvironmentObject.replace(invites: result)
} catch {
showExceptionModal = true
}
In swift I can write to call an async methodhfhbd
01/06/2022, 3:35 PMasync
is called suspend
.await
, you need a CoroutineScope, which is provided by the library.elizarov
01/06/2022, 3:37 PMFred Bowker
01/06/2022, 3:37 PMJim
01/06/2022, 3:59 PMFred Bowker
01/06/2022, 4:37 PM