Concurrency with Futures

The people bashing threads are typically system programmers which have in mind use cases that the typical application programmer will never encounter in her life.... In 99% of the use cases an application programmer is likely to run into, the simple pattern of spawning a bunch of independent threads and collecting the results in a queue is everything one needs to know.

"futures" --- objects representing the asynchronous execution of an operation. This powerful idea is the foundation not only of concurrent.futures but also of the asyncio packages.

 

 

 

 

 

end ...

posted @ 2020-03-16 02:01  neozheng  阅读(113)  评论(0)    收藏  举报