callbackOf

inline fun <P, R> callbackOf(noinline callback: (P) -> R?): Callback<P, R>

Create new callback using Kotlin function type.