Sha256: 44a759252a658cf5e0c98af8415f5e076cc682530b95b730430ba311f44156dd
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
module Ztimer class Slot attr_reader :enqueued_at, :expires_at, :callback attr_accessor :started_at, :executed_at def initialize(enqueued_at, expires_at, &callback) @enqueued_at = enqueued_at @expires_at = expires_at @callback = callback @started_at = nil @executed_at = nil end def <=>(other) return @expires_at <=> other.expires_at end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ztimer-0.2.0 | lib/ztimer/slot.rb |