julian
07/13/2021, 9:23 PMjulian
07/13/2021, 9:25 PMlaunch {
async { ... }
}
streetsofboston
07/13/2021, 10:46 PMlaunch
should not finish until the coroutine of async
has finished.
The job of the async should be a child of launch.julian
07/13/2021, 11:09 PMjulian
07/13/2021, 11:15 PMchildren
of jobs. But, in recent experiments, it seems to be that structured concurrency can be respected without such relationships being evident in the children of the parent jobs involved. The test above is an example of this.streetsofboston
07/13/2021, 11:38 PMlaunch
has not yet started at all when you assert your test.
If your test is asserted a bit later, the coroutine of the launch
may have been started and its job may have a child-jobstreetsofboston
07/13/2021, 11:40 PMadvanceUntilIdle
should have made sure that the coroutine of launch
should at least have started.... But I'm not sure about the exact behavior of advanceUntilIdle
...julian
07/13/2021, 11:46 PMjulian
07/13/2021, 11:47 PMjulian
07/13/2021, 11:52 PMstreetsofboston
07/14/2021, 2:52 AMjulian
07/14/2021, 6:58 AM