How can a deferred object be constructed with a re...
# coroutines
t
How can a deferred object be constructed with a result? Like in the following example:
Copy code
return if (condition) {
        async { ...}
} else {
        DeferredResult(VALUE_ALREADY_COMPUTED)
}
Of course
DeferredResult
does not exist. Or should the whole conditional just be wrapped in
async
?