Sha256: bbce1b3645b8537c28773e5b20e30f79355ef319c41bbdabd0168aa785bbf690
Contents?: true
Size: 448 Bytes
Versions: 17
Compression:
Stored size: 448 Bytes
Contents
$:.push File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') require 'redcar' Redcar.environment = :test Redcar.load class QuickTask < Redcar::Task def initialize(id=nil) @id = id end def execute $started_tasks << @id :hiho end def inspect "<#{self.class} #{@id}>" end end class BlockingTask < QuickTask def execute $started_tasks << @id loop { break if java.lang.Thread.interrupted } end end
Version data entries
17 entries across 17 versions & 1 rubygems