class
Croupier::TaskRegistry
- Croupier::TaskRegistry
- Reference
- Object
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
- Enumerable({String, Croupier::Task})
Defined in:
croupier/task_registry.crInstance Method Summary
- #[](*args, **options)
- #[](*args, **options, &)
- #[]?(*args, **options)
- #[]?(*args, **options, &)
-
#by_id?(id : String) : Task | Nil
The task with id
id, or nil -
#each(& : Tuple(String, Task) -> ) : Nil
Must yield this collection's elements to the block.
- #each_key(*args, **options)
- #each_key(*args, **options, &)
- #each_value(*args, **options)
- #each_value(*args, **options, &)
- #empty?(*args, **options)
- #empty?(*args, **options, &)
- #fetch(*args, **options)
- #fetch(*args, **options, &)
- #has_key?(*args, **options)
- #has_key?(*args, **options, &)
-
#inspect(io : IO) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #keys(*args, **options)
- #keys(*args, **options, &)
- #size(*args, **options)
- #size(*args, **options, &)
- #values(*args, **options)
- #values(*args, **options, &)
Instance Method Detail
Description copied from module Enumerable({String, Croupier::Task})
Must yield this collection's elements to the block.
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>