Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jldupont committed Mar 3, 2013
1 parent 3ac776d commit 58cb40e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions latest
@@ -0,0 +1 @@
0.1.0
36 changes: 18 additions & 18 deletions setup.py
Expand Up @@ -22,31 +22,31 @@
The function "upub" can be used to queue a message in front instead of the normal tail.
Small Example
=============
-------------
## Actor 1 in module1.py
##
from subpub import sub, pub
## Actor 1 in module1.py
##
from subpub import sub, pub
@sub
def on_topic1(param1):
print "module1/topic1: ", param1
@sub
def on_topic1(param1):
print "module1/topic1: ", param1
@sub
def on_topic2(param1):
print "module1/topic2: ", param1
@sub
def on_topic2(param1):
print "module1/topic2: ", param1
## Actor 2 in module2.py
##
from subpub import sub, pub
## Actor 2 in module2.py
##
from subpub import sub, pub
@sub
def on_topic1(param1):
print "module2/topic1: ", param1
@sub
def on_topic1(param1):
print "module2/topic1: ", param1
pub("topic1", "value1")
pub("topic2", "value2")
pub("topic1", "value1")
pub("topic2", "value2")
The example above would yield:
Expand Down

0 comments on commit 58cb40e

Please sign in to comment.