Norbi
01/18/2024, 11:51 AMsuspend function before rendering the compose UI
• because of the previous requirement, it uses a suspend main() function
What are your suggestions to these? Thanks.
(I had some other issues - possibly related to a KSP processor - but I have to investigate it further after the above problem is solved...)David Herman
01/25/2024, 8:21 PM@Page or Compose HTML more generally, the few ways I'm aware are...
• use val scope = rememberCoroutineScope() and then launch from it
• use LaunchedEffect(Unit), as the launch block in there is suspend scope
• use CoroutineScope(window.asCoroutineDispatcher()).launch { ... }