Skip to main content

async task pool

Project description

#项目名:
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)
```

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Files for easythreads, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size easythreads-1.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page