Skip to main content
#项目名:
easythreads
使用threading实现了一个线程池,使用方法很是简单,我们只需要把执行的函数塞入线程池里就可以了.

#Usage:

```
from easythreads import AsyncWorker

def task_a():
print 'a..'

def task_b(a,b,c):
print 'b...'

pool = AsyncWorker(10)
pool.append(task_a)
pool.append(task_b,1,2,3)
pool.shutdown(block=False)
```

Download files

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

Source Distribution

easythreads-1.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file easythreads-1.0.tar.gz.

File metadata

  • Download URL: easythreads-1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for easythreads-1.0.tar.gz
Algorithm Hash digest
SHA256 409049fb4e48c85a63664e5af00db57cc27435c9a4a3d80f0807f8b97b3488d4
MD5 0bebfbcaed5d3eaa8a634a9df3f869b3
BLAKE2b-256 8137a31a0909f81e0790838bed10a2e0b1d54d27336d304204a93db805c7efd9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page