class Sequel::Database::AsyncThreadPool::PreemptableProxy

  1. lib/sequel/extensions/async_thread_pool.rb
Superclass: BaseProxy

Object class for async job/proxy result when the :preempt_async_thread Database option is used. Uses a mutex for synchronization, and either the JobProcessor or the calling thread can run code to get the value.

Methods

Public Class

  1. new

Public Class methods

new()
[show source]
    # File lib/sequel/extensions/async_thread_pool.rb
321 def initialize
322   super
323   @mutex = ::Mutex.new
324 end