require 'StartableThread.rb'

p = proc {
    p 'Started'
    20.times {|i|
        sleep 1
        p "."+i.to_s
    }
    p 'Ended'
}


t = StartableThread.new {
    p 'Started'
    3.times {|i|
        sleep 1
        p "."+i.to_s
    }
    p 'Ended'
}


t.start
t.join