plugins/Markov.rb
# Work in a background thread so we don't disconnect if we take too long, and
# block all other calls to the database.
Work in a background thread so we don't disconnect if we take too long, and
block all other calls to the database.
Work in a background thread so we don ' t disconnect if we take too long and block all other calls to the database .
def work(&block)
		Thread.new {
			@working = true
			block.call
			@working = false
		}
	end
def work ( & block ) Thread . new { @working = true block . call @working = false } end
Work in a background thread so we don't disconnect if we take too long, and
block all other calls to the database.
Work in a background thread so we don ' t disconnect if we take too long and block all other calls to the database .
block
<not_specific>