# multi_yielder **Repository Path**: lhtgitee1/multi_yielder ## Basic Information - **Project Name**: multi_yielder - **Description**: a easy-to-use Python multi-thread/process parallel helper - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-20 - **Last Updated**: 2021-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # multi_yielder a easy-to-use Python multi-thread/process parallel helper ## support: - multi thread, process or gevent - easy to use - easy to stop ## how to use: ``` def xprint(x): time.sleep(1) # mock a long time task yield x*x i=0 for item in multi_yield(xprint, process_mode,3,xrange(100)): i+=1 print(item) if i>10: break ```