Parent

Files

Class/Module Index [+]

Quicksearch

Concurrent::Condition::Result

Attributes

remaining_time[R]

Public Class Methods

new(remaining_time) click to toggle source
# File lib/concurrent/atomic/condition.rb, line 21
def initialize(remaining_time)
  @remaining_time = remaining_time
end

Public Instance Methods

can_wait?() click to toggle source
Alias for: woken_up?
timed_out?() click to toggle source

@return [Boolean] true if current thread has been waken up due to a

timeout, otherwise false
# File lib/concurrent/atomic/condition.rb, line 35
def timed_out?
  @remaining_time != nil && @remaining_time <= 0
end
woken_up?() click to toggle source

@return [Boolean] true if current thread has been waken up by a signal

or a #broadcast call , otherwise false
# File lib/concurrent/atomic/condition.rb, line 29
def woken_up?
  @remaining_time.nil? || @remaining_time > 0
end
Also aliased as: can_wait?

[Validate]

Generated with the Darkfish Rdoc Generator 2.