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