class Croupier::TaskRegistry

Overview

Every registered task, keyed by each of its outputs (or by id for tasks without outputs), plus an index by task id. The value of TaskManager.tasks.

Read-only for users: the task set changes only through Task.new and TaskManager.remove_task, which lock, refuse changes during a run and keep both indexes in step.

Included Modules

Defined in:

croupier/task_registry.cr

Instance Method Summary

Instance Method Detail

def [](*args, **options) #

[View source]
def [](*args, **options, &) #

[View source]
def []?(*args, **options) #

[View source]
def []?(*args, **options, &) #

[View source]
def by_id?(id : String) : Task | Nil #

The task with id id, or nil


[View source]
def each(& : Tuple(String, Task) -> ) : Nil #
Description copied from module Enumerable({String, Croupier::Task})

Must yield this collection's elements to the block.


[View source]
def each_key(*args, **options) #

[View source]
def each_key(*args, **options, &) #

[View source]
def each_value(*args, **options) #

[View source]
def each_value(*args, **options, &) #

[View source]
def empty?(*args, **options) #

[View source]
def empty?(*args, **options, &) #

[View source]
def fetch(*args, **options) #

[View source]
def fetch(*args, **options, &) #

[View source]
def has_key?(*args, **options) #

[View source]
def has_key?(*args, **options, &) #

[View source]
def inspect(io : IO) : Nil #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def keys(*args, **options) #

[View source]
def keys(*args, **options, &) #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def values(*args, **options) #

[View source]
def values(*args, **options, &) #

[View source]