Sha256: 0d476f7c483def395c86f0ccb764923917f9443e585667dcda44d276950dfd84

Contents?: true

Size: 376 Bytes

Versions: 18

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

require 'fileutils'

require_relative './core/thread_pool'

::File.singleton_class.instance_eval do
  alias_method :orig_stat, :stat
  def stat(path)
    ThreadPool.process { orig_stat(path) }
  end
end

::IO.singleton_class.instance_eval do
  alias_method :orig_read, :read
  def read(path)
    ThreadPool.process { orig_read(path) }
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
polyphony-0.45.0 lib/polyphony/adapters/fs.rb
polyphony-0.44.0 lib/polyphony/adapters/fs.rb
polyphony-0.43.11 lib/polyphony/adapters/fs.rb
polyphony-0.43.10 lib/polyphony/adapters/fs.rb
polyphony-0.43.9 lib/polyphony/adapters/fs.rb
polyphony-0.43.8 lib/polyphony/adapters/fs.rb
polyphony-0.43.6 lib/polyphony/adapters/fs.rb
polyphony-0.43.5 lib/polyphony/adapters/fs.rb
polyphony-0.43.4 lib/polyphony/adapters/fs.rb
polyphony-0.43.3 lib/polyphony/adapters/fs.rb
polyphony-0.43.2 lib/polyphony/adapters/fs.rb
polyphony-0.43.1 lib/polyphony/adapters/fs.rb
polyphony-0.43 lib/polyphony/adapters/fs.rb
polyphony-0.42 lib/polyphony/adapters/fs.rb
polyphony-0.41 lib/polyphony/adapters/fs.rb
polyphony-0.40 lib/polyphony/adapters/fs.rb
polyphony-0.39 lib/polyphony/adapters/fs.rb
polyphony-0.38 lib/polyphony/adapters/fs.rb