Skip to content

Instantly share code, notes, and snippets.

Avatar

Julius Flohr juliusf

View GitHub Profile
@juliusf
juliusf / async_multiprocessing.py
Created Aug 8, 2015
This is a short example of the python async pool I created for a friend. Maybe it is useful to you too
View async_multiprocessing.py
#!/usr/bin/env python
__author__ = 'jules'
from multiprocessing import Pool
import random
import time
class Job:
"""
Representation of a Job. Used to pass data to the pool and to return the result.
You can add all the information you need to this object