[concurrency] futures for pop a list
xancorreu
xancorreu at gmail.com
Fri Jan 4 20:59:04 CET 2013
Hi,
I just want to translate this classic code:
ml = [i for i in range(100)]
while ml:
element = ml.pop()
print(element)
to futures for running pop asynchronously. I started, but I don't see
how to do that. This [https://gist.github.com/4455376] is the first
attempt, but it fails when I put more elements on ml (that is ml is
growing).
Any hints?
Thanks in advance,
Xan.
More information about the concurrency-sig
mailing list