bod
02/26/2020, 2:01 PMsuspend
lambda. I think there's 2 way I can do this:
• have 2 different functions: something like handle(onSuccess: () -> Unit)
and handleSuspend(onSuccess: suspend () -> Unit)
• just have the suspend version and it can also accept a regular (non suspend) lambda
My question is is there a performance penalty (or otherwise) in doing the second option?LastExceed
02/26/2020, 2:37 PMbod
02/26/2020, 2:38 PMKroppeb
02/26/2020, 4:24 PM