Sha256: 69351d577705b0b7bef0a410fe414ca800cd8de4af5f8e0fda256a043d9bc948
Contents?: true
Size: 607 Bytes
Versions: 10
Compression:
Stored size: 607 Bytes
Contents
module FakeGVLTools def self.reset self::GlobalTimer.enabled = false self::GlobalTimer.monotonic_time = 0 self::WaitingThreads.enabled = false self::WaitingThreads.count = 0 end module GlobalTimer @enabled = false @monotonic_time = 0 class << self attr_writer :enabled attr_accessor :monotonic_time def enabled? @enabled end end end module WaitingThreads @enabled = false @count = 0 class << self attr_writer :enabled attr_accessor :count def enabled? @enabled end end end end
Version data entries
10 entries across 10 versions & 1 rubygems