edvin
01/07/2017, 5:23 PMfun <T> runAsync(func: () -> T) = task(func) - then we don't need to supply a type argument, the compiler can infer T from the value func returns. However, if func operates` on something of type T, it suddenly requires that type parameter. Changing to fun <T> runAsync(func: Task<T>.() -> T) = task(func) is what I want to do.