public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
Search Repo:
added comments to on_receive, pop in abstract_queue
oleganza (author)
Thu Apr 24 14:46:59 -0700 2008
commit  80a0fed3c86583b836e2a6a77979949b124dfd62
tree    1755180083db6f1c39a0f663b5dece8e18455b91
parent  b90949313bb1f9aa9705cf243947500008336d36
...
10
11
12
 
 
13
14
15
16
 
 
17
18
19
...
10
11
12
13
14
15
16
17
18
19
20
21
22
23
0
@@ -10,10 +10,14 @@ module StrokeDB
0
     end
0
     alias :<< :push
0
     
0
+ # on_receive callback is called when the queue decides do pop
0
+ # out an object. If there is no on_receive, it waits for the #pop call.
0
     def on_recieve(&block)
0
       @on_receive = block || @on_receive
0
     end
0
     
0
+ # Get an object out of the queue.
0
+ # nil is returned when nothing is to be returned.
0
     def pop
0
       raise "Abstract queue cannot return objects"
0
     end

Comments

    No one has commented yet.