Skip to content

Commit

Permalink
🚧 add another dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 6, 2024
1 parent 7fcd158 commit fa98905
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/multi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,33 @@ func main() {
return nil
},
},

{
Title: "Pluck the polish and marans",
Tasks: taskin.Tasks{
{
Title: "Pluck the polish",
Task: func(t *taskin.Task) error {
for i := 0; i < 3; i++ {
t.Title = fmt.Sprintf(" [%d/3] polish plucked", i+1)
time.Sleep(500 * time.Millisecond)
}
return nil
},
},
{
Title: "Pluck the marans",
Task: func(t *taskin.Task) error {
for i := 0; i < 3; i++ {
t.Title = fmt.Sprintf(" [%d/3] marans plucked", i+1)
time.Sleep(500 * time.Millisecond)
}
return nil
},
},
},
},

{
Title: "Pluck the leghorns",
Task: func(t *taskin.Task) error {
Expand Down

0 comments on commit fa98905

Please sign in to comment.