withPromise

fun <V, E> withPromise(thread: ThreadRef, action: (Promise<V, E>) -> Unit): Future<V, E>

Convenience method to create and return a Promise.