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


Groups > comp.lang.python > #75076 > unrolled thread

Question about asyncio doc example

Started bySaimadhav Heblikar <saimadhavheblikar@gmail.com>
First post2014-07-23 16:13 +0530
Last post2014-07-23 16:13 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Question about asyncio doc example Saimadhav Heblikar <saimadhavheblikar@gmail.com> - 2014-07-23 16:13 +0530

#75076 — Question about asyncio doc example

FromSaimadhav Heblikar <saimadhavheblikar@gmail.com>
Date2014-07-23 16:13 +0530
SubjectQuestion about asyncio doc example
Message-ID<mailman.12231.1406112267.18130.python-list@python.org>
Hi,

The example in question is
https://docs.python.org/3/library/asyncio-task.html#example-hello-world-coroutine.
I'd like to learn the purpose of the statement
"yield from asyncio.sleep(2)" in that example.

In particular, I'd like to know if asyncio.sleep() is used as a
substitute for slow/time consuming operation, i.e. in real code,
whether there will be a real time consuming statement in place of
asyncio.sleep().

-- 
Regards
Saimadhav Heblikar

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web