Skip to main content

Multi-thread map

Project description

Author:

Y.Okamura

Multi thread map

Example

>>> import threadmap
>>> import time
>>> def testfun(a):
...     print 'start', a
...     time.sleep(1)
...     print 'finish', a
...     return a**2
...
>>> tm = threadmap.ThreadMap()
>>> tm.map(testfun, range(10))

License

GNU General Public License v3 or later

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

threadmap-0.1.1.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file threadmap-0.1.1.tar.gz.

File metadata

  • Download URL: threadmap-0.1.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for threadmap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f2176707ae9fa097146c1e56de3c130a231487c10c5f09e9ae591d64483ea48
MD5 c438425914a3597a54b1a33ab44beed6
BLAKE2b-256 7926c9fdb0e5b648c8b2284a8fd2a6e5df61111b4f98d4912036b1e8ba01384c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page