#项目名:
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)
```
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)
```
Metadata
Release files for easythreads 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| easythreads-1.0.tar.gz | 2.2 kB | Without provenance | Details |
Release files / easythreads-1.0.tar.gz
| Download URL | easythreads-1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
409049fb4e48c85a63664e5af00db57cc27435c9a4a3d80f0807f8b97b3488d4
|
|
BLAKE2b-256 checksum How to use checksums |
8137a31a0909f81e0790838bed10a2e0b1d54d27336d304204a93db805c7efd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for easythreads 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.