get '/my_route_which_allows_no_concurrency/?' do
raise 'this route does not support concurrency' if
session[:processing_special_route]
session[:processing_special_route] = true
# ...
session[:processing_special_route] = false
# return your result
end
--
Jason Rogers
> --
> You received this message because you are subscribed to the Google Groups "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.
>
We don't have per-route locking at the moment, though it wouldn't be to hard to build. You can do per-request locking with `enable :lock`.
Konstantin