# Open the door AND play the chime AND wait 2s — all at once; # continue only when the slowest finishes. sync: OpenDoor() PlayChime() Sleep(2.0)