Method: Sequel::Database::AsyncThreadPool::BaseProxy#initialize
- Defined in:
- lib/sequel/extensions/async_thread_pool.rb
permalink #initialize(&block) ⇒ BaseProxy
Store a block that returns the result when called.
238 239 240 241 |
# File 'lib/sequel/extensions/async_thread_pool.rb', line 238 def initialize(&block) ::Kernel.raise Error, "must provide block for an async job" unless block @block = block end |