Skip to content

waiting for all subtasks? #140

@emiltin

Description

@emiltin

How can I wait for a task and all it's subtasks? It sems calling wait() doesn't wait for subtasks:

Async do |t1|
  t1.async do |t2|
    t2.async do |t3|
      t3.sleep 1
      p :a
    end
  end.wait
  p :b
end

=>
:b
:a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions