Tristan Blakers
10/28/2020, 6:22 AMexpect class Later<T>
JS:
actual typealias Later<T> = Promise<T>
JVM:
actual typealias Later<T> = Deferred<T>
But that doesn't seem to work because of the out variance on the Promise/Deferred, i.e. Promise<out T>. This feels like a common use-case, so wondering what the usual solution is? Would prefer not to wrap each method on each platform for maintenance reasons...Tristan Blakers
10/28/2020, 6:23 AMBig Chungus
10/28/2020, 8:07 AMTristan Blakers
10/28/2020, 8:26 AMBig Chungus
10/28/2020, 8:29 AMTristan Blakers
10/28/2020, 8:32 AMadk
10/30/2020, 8:10 AMadk
10/30/2020, 8:12 AMBig Chungus
10/30/2020, 8:13 AMTristan Blakers
10/30/2020, 10:31 AMBig Chungus
10/30/2020, 10:34 AMspand
10/30/2020, 10:36 AMTristan Blakers
10/30/2020, 10:39 AMactual typealias
on either promise or deferred because of the <out T>Tristan Blakers
10/30/2020, 10:41 AM