Message246405
After trying out some example code in issue 24578, I've changed the suggestion function name to "call_async". The reason is because it makes this kind of code read quite well:
futureB = asyncio.call_async(slow_io_bound_operation)
futureC = asyncio.call_async(another_slow_io_bound_operation)
a = calculateA()
b = asyncio.wait_for_result(futureB)
c = asyncio.wait_for_result(futureC)
And still reads well when combined with await:
b = await asyncio.call_async(blocking_operation) |
|
Date |
User |
Action |
Args |
2015-07-07 12:31:42 | ncoghlan | set | recipients:
+ ncoghlan, gvanrossum, pitrou, vstinner, giampaolo.rodola, yselivanov, srkunze |
2015-07-07 12:31:42 | ncoghlan | set | messageid: <1436272302.18.0.741364108485.issue24571@psf.upfronthosting.co.za> |
2015-07-07 12:31:42 | ncoghlan | link | issue24571 messages |
2015-07-07 12:31:41 | ncoghlan | create | |
|