Sha256: 9b656cbde3d019acf6a6c78db37158ecd7aa9a60cedc74dabf9f7131c93228fd
Contents?: true
Size: 281 Bytes
Versions: 14
Compression:
Stored size: 281 Bytes
Contents
module ProconBypassMan class SafeTimeout class Timeout < StandardError; end # 5秒後がタイムアウト def initialize(timeout: Time.now + 5) @timeout = timeout end def throw_if_timeout! raise Timeout if @timeout < Time.now end end end
Version data entries
14 entries across 14 versions & 1 rubygems