Zoltan Demant
07/17/2023, 1:11 PMSheetStateZoltan Demant
07/17/2023, 1:13 PMStylianos Gakis
07/17/2023, 1:23 PMStylianos Gakis
07/17/2023, 1:23 PMZoltan Demant
07/17/2023, 1:24 PMZoltan Demant
07/17/2023, 1:26 PMStylianos Gakis
07/17/2023, 1:26 PMlaunch {
  someSuspendFunction()
  yourCallback()
}launch {
  someSuspendFunction()
}.invokeOnCompletion {
  yourCallback()
}Stylianos Gakis
07/17/2023, 1:27 PMStylianos Gakis
07/17/2023, 1:27 PMrememberCoroutineScopeZoltan Demant
07/17/2023, 1:27 PMStylianos Gakis
07/17/2023, 1:27 PMStylianos Gakis
07/17/2023, 1:28 PMStylianos Gakis
07/17/2023, 1:28 PMZoltan Demant
07/17/2023, 1:28 PMStylianos Gakis
07/17/2023, 1:28 PMStylianos Gakis
07/17/2023, 1:29 PM0,00001% chance that my debug build is actually the culpritAlways possible 😅
Zoltan Demant
07/17/2023, 1:29 PMStylianos Gakis
07/17/2023, 1:31 PMZoltan Demant
07/17/2023, 1:42 PMval AnimationSpec = SpringSpec<Float>()Stylianos Gakis
07/17/2023, 1:44 PMStylianos Gakis
07/17/2023, 2:20 PMhide()jossiwolf
07/17/2023, 2:47 PMhide()show()CancellationExceptioninvokeOnCompletionZoltan Demant
07/17/2023, 2:47 PMStylianos Gakis
07/17/2023, 2:49 PMYeah I was comparing it with this, which would in fact be wrong right? The first option would not work properly in case of cancellationvs try-catchinvokeOnCompletion
jossiwolf
07/17/2023, 2:52 PMsomeSuspendFunction()yourCallback()efemoney
07/19/2023, 12:23 PM