The "await" command in LEGO SPIKE Python Pro Preview

The await command tells your robot:
“Wait until this action is finished, then continue!”

content picture

Why use "await"?

  • Motors need time to move
  • Sounds need time to play
  • Sensors need time to read values

Without "await", the robot may move on too quickly and not finish its actions properly.

Important rule

You can only use "await" inside an "async" function.

async def main():
    await motor.run_for_time(port.A, 1000, 1000)

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2586
  • 10 Feb 2026