pdvrieze
11/30/2017, 1:23 PMsuspendCancellableCoroutine
will give you the continuation. This continuation is what you use to resume the execution to what is logically outside/after this block. What you want to do is wait for some unspecified future event to do so. So the call to resume should be from inside the event handling code - in other words you want to store the continuation (perhaps implicitly) and then resume it when you have your result.
The suspension needs to be on the redis get. Your second post reflects that.