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

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level A: Python Foundations – Robotics with LEGO SPIKE Prime
  • 46
  • 4:32
  • 78
Image for Lesson 3 - Luna 3
  • 5
  • 4
  • 9
  • 3d_rotation 1