mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Implement finished? method
This commit is contained in:
parent
3133717323
commit
98f886d9d4
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,11 @@ module Spectator
|
|||
@nodes.each { |node| yield node }
|
||||
end
|
||||
|
||||
# Checks if all examples and sub-groups have finished.
|
||||
def finished? : Bool
|
||||
@nodes.all?(&.finished?)
|
||||
end
|
||||
|
||||
# Adds the specified *node* to the group.
|
||||
# Assigns the node to this group.
|
||||
# If the node already belongs to a group,
|
||||
|
|
Loading…
Reference in a new issue