skip to navigation
skip to content

easythreads 1.0

async task pool

#项目名:
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)
```  
File Type Py Version Uploaded on Size
easythreads-1.0.tar.gz (md5) Source 2015-11-18 2KB