Sha256: 1e7c8e7f69b854b93bf615fc60b272341ebca3784b2818c64640c1553a7a357e
Contents?: true
Size: 410 Bytes
Versions: 22
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true export :stat, :read require 'fileutils' ThreadPool = import('./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
22 entries across 22 versions & 1 rubygems