dave08
09/26/2017, 2:56 PMlaunch(CommonPool) { inject(kodein) } and inject the dependecies bind<A> with singleton { awaitResult<A> { callback -> aFactory(callback) } } where awaitResult<T> is a suspend fun... but it would still be great if I could find a way to use some kind of extension function for the awaitResult boilerplate which is just a generic wrapper for the classic callback for result pattern (which is used alot in Vert.x...)
Slack Conversationdave08
09/26/2017, 2:58 PM