<@U7PKD6563> what do you mean by sequentially? If...
# coroutines
u
@Martin Tøften what do you mean by sequentially? If `bg`is the one from anko, your code should run uninterrupted until
spaces.value = deferredSpaces.await()
where it will suspend. By that time both
GetSpaces()
and
GetImages()
should be running in the background, in parallel. Then, when
Spaces
have been downloaded it will proceed to
images.value = deferredImages.await()
. If the
Images
are already downloaded it will continue immediately, otherwise suspend until the images are also there. Done.