summaryrefslogtreecommitdiff
path: root/lib/killjoy/thread_interceptor.rb
blob: 2a673d5bb77a12ec4700fcb2968ea2e355dc22e4 (plain)
1
2
3
4
5
6
7
8
9
10
module Killjoy
  class ThreadInterceptor
    def intercept(invocation)
      Thread.new do
        puts "thread: #{Thread.current.object_id}"
        invocation.proceed
      end
    end
  end
end