So in the latest release, `launchInComposition` go...
# compose
v
So in the latest release,
launchInComposition
got renamed to
LaunchedTask
. Eerily close to
AsyncTask
in name and functionally (not entirely true) 😆
z
Copy code
@Composable fun <T> AsyncTask(block: suspend CoroutineScope.() -> T): Deferred<T> {
  val scope = rememberCoroutineScope()
  return remember { scope.async(block) }
}
🧌
🧌 14
a
I think you just wrote
produceState
but without the observable result 😄
☝️ 1
but yes, the similarity to AsyncTask is both understood and partially intentional - it may go through one more rename before we're done though since we seem to be converging on some other names for the effect APIs like
SideEffect
and
DisposableEffect
, and then it might make more sense for this to be
LaunchedEffect
the fun of alpha api churn 🙂
z
ApiEffect
s
EffectEffect
🎉 1
😂 1
a
There's something nice about being able to precisely refer to the family of functions