allan.conda
07/20/2020, 10:51 AMallan.conda
07/20/2020, 10:52 AMbezrukov
07/20/2020, 11:03 AMcommonDependency {
// someScope needs to be injected, and it should live longer than useCaseA/useCaseB
val resultDeferred = someScope.async(start = CoroutineStart.LAZY) {
log("fetching result...")
//
result
}
suspend fun fetchResult() = resultDeferred.await()
}