class Celluloid::TaskSet - celluloid-0.16.0 Documentation

# class Celluloid::TaskSet

### Public Class Methods

new() click to toggle source

    # File lib/celluloid/task_set.rb, line 14
    def initialize
      @tasks = Set.new
    end

### Public Instance Methods

<<(task) click to toggle source

    # File lib/celluloid/task_set.rb, line 24
    def <<(task)
      Rubinius.synchronize(self) { @tasks << task }
    end

delete(task) click to toggle source

    # File lib/celluloid/task_set.rb, line 28
    def delete(task)
      Rubinius.synchronize(self) { @tasks.delete task }
    end

empty?() click to toggle source

    # File lib/celluloid/task_set.rb, line 36
    def empty?
      Rubinius.synchronize(self) { @tasks.empty? }
    end

first() click to toggle source

    # File lib/celluloid/task_set.rb, line 32
    def first
      Rubinius.synchronize(self) { @tasks.first }
    end

to_a() click to toggle source

    # File lib/celluloid/task_set.rb, line 40
    def to_a
      Rubinius.synchronize(self) { @tasks.to_a }
    end