What's the difference between parameter `block: suspend () -> T` and `block: suspend CoroutineSco...
p
What's the difference between parameter
block: suspend () -> T
and
block: suspend CoroutineScope.() -> T
?
e
IMO: just use
block: suspend () -> T
, as it conventionally implies that the block has "completed" when it returns
block: CoroutineScope.() -> Deferred<T>
(non-
suspend
) would be pretty equivalent but less convenient