GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Threaded comments
lawrencepit (author)
Sun Apr 20 22:55:59 -0700 2008
commit  6ff26d0b7b5795dcdac31535677dfbd2c35a0939
tree    ca3a7f7e6a87794264343b71c89dbe4e5c5356cc
parent  89187d63c85f358d4ca73215bfaae9d62cffb2ec
...
161
162
163
 
 
 
 
164
165
166
...
170
171
172
173
 
 
 
174
175
176
...
161
162
163
164
165
166
167
168
169
170
...
174
175
176
 
177
178
179
180
181
182
0
@@ -161,6 +161,10 @@ module Waves
0
    handlers << [exception,options, block]
0
    end
0
   
0
+ # Maps a request to a block that will be executed within it's
0
+ # own thread. This is especially useful when you're running
0
+ # with an event driver server like thin or ebb, and this block
0
+ # is going to take a relatively long time.
0
    def threaded( pat, options = {}, params = {}, &block)
0
    params[:threaded] = true
0
    map( pat, options, params, &block)
0
@@ -170,7 +174,9 @@ module Waves
0
    # by event driven servers like thin and ebb, and is most useful for those methods that
0
    # take a long time to complete, like for example upload processes. E.g.:
0
    #
0
- # map("/upload", {:method => :post}, {:threaded => true})
0
+ # threaded("/upload", :method => :post) do
0
+ # handle_upload
0
+ # end
0
    #
0
    # You typically wouldn't use this method directly.
0
    def threaded?( request )

Comments

    No one has commented yet.