<How to wait for suspend function to be completed ...
# stackoverflow
u
How to wait for suspend function to be completed before executing other code in kotlin I'm wondering if I can wait until a suspend function has completed before executing other code? loadParticlesWithoutSetCall, which I call inside of setParticlePicking, has a suspend function. I do not want anything else in setParticlePicking to be called until the suspend function has finished. Please let me know. fun setParticlePicking(particlePicking: ParticlePicking) { loadParticlesWithoutSetCall() manualParticleMarkers?.forEach { imageContainerElem.remove(it) }...