Sha256: 5126cb1eb3706d70998fb9690751cd931a2b78766906cfb484d2a22c5358ad1e
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <!-- relax (RQ::Relayer) --> <html> <head> <title>relax (RQ::Relayer)</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/relayer.rb, line 240</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">relax</span> <span class="ruby-comment cmt">#--{{{</span> <span class="ruby-identifier">seconds</span> = <span class="ruby-identifier">rand</span>(<span class="ruby-ivar">@max_sleep</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@min_sleep</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>) <span class="ruby-operator">+</span> <span class="ruby-ivar">@min_sleep</span> <span class="ruby-identifier">debug</span>{ <span class="ruby-node">"relaxing <#{ seconds }>"</span> } <span class="ruby-identifier">sleep</span> <span class="ruby-identifier">seconds</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/Relayer.src/M000114.html |
rq-3.1.0 | doc/classes/RQ/Relayer.src/M000114.html |