Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
n89nanda authored Feb 2, 2018
1 parent 57f5722 commit a9577f3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,31 +88,31 @@ Modes: pyeventbus can run the subscribing methods in 5 different modes
3. GREENLET::

+ Runs the method in a greenlet using gevent library::
Runs the method in a greenlet using gevent library::
@subscribe(threadMode = Mode.GREENLET, onEvent=MessageEvent)
def func(self, event):
# Do something
pass
4. BACKGROUND:
4. BACKGROUND::
+ Adds the subscribing methods to a queue which is executed by workers.
Adds the subscribing methods to a queue which is executed by workers::
@subscribe(threadMode = Mode.BACKGROUND, onEvent=MessageEvent)
def func(self, event):
# Do something
pass
@subscribe(threadMode = Mode.BACKGROUND, onEvent=MessageEvent)
def func(self, event):
# Do something
pass


3. CONCURRENT:
3. CONCURRENT::

+ Runs the method in a seperate python process::
Runs the method in a seperate python process::
@subscribe(threadMode = Mode.CONCURRENT, onEvent=MessageEvent)
def func(self, event):
# Do something
pass
@subscribe(threadMode = Mode.CONCURRENT, onEvent=MessageEvent)
def func(self, event):
# Do something
pass
Expand Down

0 comments on commit a9577f3

Please sign in to comment.