Sha256: 7d05cf52c9d29bb8e202f865e5ef861d3924d94ee24d901e8363510a655e7ee6
Contents?: true
Size: 1.98 KB
Versions: 2
Compression:
Stored size: 1.98 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <!-- ro_transaction (RQ::JobQueue) --> <html> <head> <title>ro_transaction (RQ::JobQueue)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" /> </head> <body> <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/jobqueue.rb, line 693</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ro_transaction</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) <span class="ruby-comment cmt">#--{{{</span> <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@in_ro_transaction</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@in_transaction</span> <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">begin</span> <span class="ruby-ivar">@in_ro_transaction</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-ivar">@qdb</span>.<span class="ruby-identifier">ro_transaction</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>){ <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">yield</span> } <span class="ruby-keyword kw">ensure</span> <span class="ruby-ivar">@in_ro_transaction</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">ret</span> <span class="ruby-comment cmt">#--}}}</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rq-3.0.0 | doc/classes/RQ/JobQueue.src/M000192.html |
rq-3.1.0 | doc/classes/RQ/JobQueue.src/M000192.html |