at the source code when I have time.
2016-02-25 5:00 GMT+08:00 Gregory Ewing <greg.ew...@canterbury.ac.nz>:
> 王珺 wrote:
>
>> Suppose io_operation() takes 3 seconds, then how can I write something
>> like
>>
>> future = io_operation()
>> print('Start')
>> tim
It seems an event loop is required for all async programs in python, but
sometimes I need only lazy i/o. Is it possible with asyncio?
Suppose io_operation() takes 3 seconds, then how can I write something like
future = io_operation()
print('Start')
time.sleep(1)
print('Something')
time.sleep(2)