Commit ac4a42a4 authored by David Wilson's avatar David Wilson

docs: fix Select() example for new style API.

parent e59cc890
......@@ -289,9 +289,10 @@ available.
for name in dirnames + filenames), 0)
total = 0
for recv, (msg, value) in Select(c.call_async(usage, '/tmp') for c in contexts):
print 'Context %s /tmp usage: %d' % (recv.context, value)
total += value
for msg in Select(c.call_async(usage, '/tmp') for c in contexts):
usage = msg.unpickle()
print 'Context %s /tmp usage: %d' % (recv.context, usage)
total += usage
print 'Total /tmp usage across all contexts: %d' % (total,)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment