Class: Fluffle::Testing::ThreadPool

Inherits:
Object
  • Object
show all
Defined in:
lib/fluffle/testing.rb

Overview

Fake thread pool that executes ‘#post`’ed blocks immediately in the current thread

Instance Method Summary collapse

Instance Method Details

#post(&block) ⇒ Object



51
52
53
# File 'lib/fluffle/testing.rb', line 51

def post(&block)
  block.call
end