pub fn with_worker<R, W>(work: W) -> impl Future<Output = R>Expand description
Runs work on a worker thread and resolves with its result on the UI thread.
Compose’s withContext(Dispatchers.IO): the way domain work leaves the UI thread.
In a browser, which has no threads here, work runs where the future is first polled.