kirillrakhman
04/13/2017, 9:35 AMpublic suspend fun <T> Vertex.await() : T = suspendCoroutine { c ->
sendMsg(...)... { callbackArg ->
//... callback handler...
if (success) { c.resume(it) }
else { c.resumeWithException(exceptionMsg) }
}