will be evaluated to task in intended_time @!visibility private
# File lib/concurrent/edge/future.rb, line 1375 def initialize(default_executor, intended_time) @IntendedTime = intended_time in_seconds = begin now = Time.now schedule_time = if @IntendedTime.is_a? Time @IntendedTime else now + @IntendedTime end [0, schedule_time.to_f - now.to_f].max end super Event.new(self, default_executor) Concurrent.global_timer_set.post(in_seconds) do @Future.complete_with Event::COMPLETED end end
Generated with the Darkfish Rdoc Generator 2.