https://kotlinlang.org logo
#coroutines
Title
# coroutines
j

jkbbwr

02/21/2018, 4:20 PM
asyncHandler(this::ping)
Will complain that KFunction<RoutingContext, Unit> doesnt match suspend (RoutingContext) -> Unit
j

Jonathan

02/21/2018, 4:21 PM
Suspending function reference is not really supported yet. You have to call
asyncHandler { ping() }
j

jkbbwr

02/21/2018, 4:23 PM
Ah
j

jkbbwr

02/21/2018, 4:26 PM
Thansk