Skip to content

Commit

Permalink
WIP multiple robot support
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Oct 29, 2013
1 parent d05268f commit 983452f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gobot.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ func On(cs chan interface{}) interface{}{
}
return nil
}

func Work(robots []Robot) {
for s := range robots {
go robots[s].Start()
}
for{time.Sleep(10 * time.Millisecond)}
}

0 comments on commit 983452f

Please sign in to comment.