Sha256: 3d99da24338610d99ed62cc23cba6fa383c08cdd70a211d4e650c64c56f8901e
Contents?: true
Size: 377 Bytes
Versions: 52
Compression:
Stored size: 377 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
52 entries across 52 versions & 1 rubygems