Is it not possible to pass a reference to a suspen...
# coroutines
m
Is it not possible to pass a reference to a suspend function? Say I have map like
val map: Map<String, suspend (String) -> Boolean
If i try to initialize it with
mapOf("some string" to ::mySuspendFunction)
the compiler says
Type inference failed. Expected type mismatch: inferred type is Map<String, KFunction1<@ParameterName String, Boolean>> but Map<String, suspend (String) -> Boolean was expected