how to work await x operator?

Marko Rauhamaa marko at pacujo.net
Sun Jun 5 11:21:52 EDT 2016


ICT Ezy <ictezy at gmail.com>:

> how to work await x Await expression operator? 
> pl explain any one ...

A coroutine can't be called directly. A call to a coroutine must be
prefixed with the "async" keyword. That allows Python to perform a
context switch between coroutines in case the coroutine needs to wait
for the operation to complete.


Marko



More information about the Python-list mailing list