Message162523
| Author |
sbt |
| Recipients |
acooke, pitrou, sbt |
| Date |
2012年06月08日.11:59:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339156751.22.0.761549883855.issue12897@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If you want lazy operation then you should use imap(f, it[, chunksize]) rather than using map_async(f, it).
This will return an iterator rather than a list. Also, the iterator's next() method has a timeout argument. (chunksize is the number of items which get sent to a worker in each batch, with 1 being the default.) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月08日 11:59:11 | sbt | set | recipients:
+ sbt, pitrou, acooke |
| 2012年06月08日 11:59:11 | sbt | set | messageid: <1339156751.22.0.761549883855.issue12897@psf.upfronthosting.co.za> |
| 2012年06月08日 11:59:10 | sbt | link | issue12897 messages |
| 2012年06月08日 11:59:10 | sbt | create |
|