https://kotlinlang.org logo
f

fstn

11/30/2017, 1:22 PM
Hmmm I think I must to do that instead:
Copy code
return awaitResult<String?> { handler ->
            redis.get("peter/user/$userId/context", handler)
        }?.let { context ->
            ContextInsideMessageBody().update(JsonObject(context)) as ContextInsideMessageBody
        }
Am I right?