Skip to content

Lupino/gevent_worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gevent_worker

A worker for gevent 1.0

Usage:

from gevent_worker.master import Master
from gevent_worker.worker import Worker

class MyWorker(Worker):

    def __init__(self):
        Worker.__init__(self)

    def run(self):
        do_some_action

    def handler(self, msg):
        print(msg)
        do_some_action

master = Master()

for i in range(0,10):
    master.start_worker(MyWorker)

master.serve_forver()

About

A gevent 1.0 worker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages