Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #109515

Re: how to work await x operator?

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: how to work await x operator?
Date 2016-06-05 18:21 +0300
Organization A noiseless patient Spider
Message-ID <87oa7f7jan.fsf@elektro.pacujo.net> (permalink)
References <23eb1050-f9ed-4bfc-8626-cd3bea329066@googlegroups.com>

Show all headers | View raw


ICT Ezy <ictezy@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

how to work await x operator? ICT Ezy <ictezy@gmail.com> - 2016-06-05 08:18 -0700
  Re: how to work await x operator? Marko Rauhamaa <marko@pacujo.net> - 2016-06-05 18:21 +0300

csiph-web