Skip to content

Instantly share code, notes, and snippets.

View juliusf's full-sized avatar

Julius Flohr juliusf

View GitHub Profile
@juliusf
juliusf / async_multiprocessing.py
Created August 8, 2015 10:08
This is a short example of the python async pool I created for a friend. Maybe it is useful to you too
#!/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