Python 3.9 is now generally available.

google.appengine.ext.ndb.sleep

Public function to sleep some time.

Example:

yield tasklets.sleep(0.5) # Sleep for half a sec.