title: Using await with fastapi
body: <p>I’ve followed the fastapi documentation but still get a error message when using this code:</p>
  <pre class="lang-py prettyprint-override"><code>async def set_pizza_status_to_ready(order: Order, db: Session):
      await baking_pizzas(order, db, 60)
      pizzas = get_all_pizzas_in_order(order, db)
      for pizza in pizzas:
          pizza.status = 'READY'
  
  def baking_pizzas(order: Order, db: Session, minutes: float):
      # simulate baking duration and set pizzas to ready afterwards
      time.sleep(minutes * 60)
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>RuntimeWarning: coroutine 'set_pizza_status_to_ready' was never awaited
  </code></pre>