Specify the package name.

Update from Brian Quinlan.
This commit is contained in:
Brett Cannon 2010-05-21 01:40:36 +00:00
parent bb0c95814a
commit 6446834bdf
1 changed files with 7 additions and 6 deletions

View File

@ -38,7 +38,7 @@ Check Prime Example
::
import futures
from concurrent import futures
import math
PRIMES = [
@ -68,7 +68,7 @@ Web Crawl Example
::
import futures
from concurrent import futures
import urllib.request
URLS = ['http://www.foxnews.com/',
@ -95,10 +95,11 @@ Web Crawl Example
Interface
---------
The proposed package provides two core classes: `Executor` and
`Future`. An `Executor` receives asynchronous work requests (in terms
of a callable and its arguments) and returns a `Future` to represent
the execution of that work request.
The proposed package would be called "futures" and would live in a new
"concurrent" top-level package. It provides two core classes: `Executor` and
`Future`. An `Executor` receives asynchronous work requests (in terms of a
callable and its arguments) and returns a `Future` to represent the execution
of that work request.
Executor
''''''''