yoavst
infix inline fun <V, R> Promise<V, Exception>.thenApply(crossinline bind: V.() -> Unit): Promise<V, Exception> = then { it.apply { bind() } }