Skip to content

Commit

Permalink
Document that a Graph can be reused
Browse files Browse the repository at this point in the history
  • Loading branch information
ztstewart committed Sep 3, 2018
1 parent ca7631c commit 1d8d7ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func NewTask(name string, deps []string, fn TaskFn) Task {
// A Graph is a representation of the dependencies of a workflow.
// It is capable of executing the dependencies of the workflow in
// a topological order.
//
// A Graph is safe to reuse for multiple executions.
type Graph struct {
tasks map[string]Task
// Map of task name to set of tasks that depend on it.
Expand Down

0 comments on commit 1d8d7ae

Please sign in to comment.