Sha256: 83d59057f3fad4d5de7e37fd993b4ae315ca7c9312fd4f42f94bf018c140fccb

Contents?: true

Size: 321 Bytes

Versions: 14

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

module FreshConnection
  class ExecutorHook
    class << self
      def run
      end

      def complete(*args)
        ReplicaConnectionHandler.instance.put_aside!
      end

      def install_executor_hooks
        ActiveSupport::Executor.register_hook(self)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fresh_connection-3.1.3 lib/fresh_connection/executor_hook.rb
fresh_connection-3.1.2 lib/fresh_connection/executor_hook.rb
fresh_connection-3.1.1 lib/fresh_connection/executor_hook.rb
fresh_connection-3.1.1.rc1 lib/fresh_connection/executor_hook.rb
fresh_connection-3.1.0 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.3 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.2 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.2.rc1 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.1 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.1.rc2 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.1.rc1 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.0 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.0.rc2 lib/fresh_connection/executor_hook.rb
fresh_connection-3.0.0.rc1 lib/fresh_connection/executor_hook.rb