class Celluloid::Internals::TaskSet
Public Class Methods
new()
click to toggle source
# File lib/celluloid/internals/task_set.rb, line 15 def initialize @tasks = Set.new end
Public Instance Methods
<<(task)
click to toggle source
# File lib/celluloid/internals/task_set.rb, line 25 def <<(task) Rubinius.synchronize(self) { @tasks << task } end
delete(task)
click to toggle source
# File lib/celluloid/internals/task_set.rb, line 29 def delete(task) Rubinius.synchronize(self) { @tasks.delete task } end
empty?()
click to toggle source
# File lib/celluloid/internals/task_set.rb, line 37 def empty? Rubinius.synchronize(self) { @tasks.empty? } end
first()
click to toggle source
# File lib/celluloid/internals/task_set.rb, line 33 def first Rubinius.synchronize(self) { @tasks.first } end
to_a()
click to toggle source
# File lib/celluloid/internals/task_set.rb, line 41 def to_a Rubinius.synchronize(self) { @tasks.to_a } end