Kenneth
08/26/2020, 9:49 AMMatteo Mirk
08/26/2020, 10:33 AMSupplier? It’s just a lambda type without arguments, returning T. Your function parameter would be:
fun <T> myfunc(supplier: () -> T) = ...Kenneth
08/26/2020, 10:39 AMMatteo Mirk
08/26/2020, 11:22 AM() -> Any? so you have to use an argument matcher on that, like any<() -> Any?>().Kenneth
08/26/2020, 12:08 PMany<Supplier<T>>() does the jobMatteo Mirk
08/26/2020, 12:35 PM