Skip to content

Commit

Permalink
real async
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarballadares committed May 13, 2015
1 parent be7084b commit 196b699
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Action struct {
}

func (a *Action) GetDir() string {
return "actions"
return "actions"
}

func (a *Action) GetFileName() string {
Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Api struct {
}

func (s *Api) GetDir() string {
return "webapi"
return "webapi"
}

func (s *Api) GetFileName() string {
Expand Down
2 changes: 1 addition & 1 deletion constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Constant struct {
}

func (c *Constant) GetDir() string {
return "constants"
return "constants"
}

func (c *Constant) GetFileName() string {
Expand Down
6 changes: 5 additions & 1 deletion fluxscaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ func createGenerators() {
func executeGenerators() {
race := make(chan bool)

for _, generator := range generators {
for i := range generators {
generator := generators[i]
go generator.Execute(race)
}

for j, generatorsLen := 0, len(generators); j < generatorsLen; j++ {
<- race
}
}
2 changes: 1 addition & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Store struct {
}

func (s *Store) GetDir() string {
return "stores"
return "stores"
}

func (s *Store) GetFileName() string {
Expand Down

0 comments on commit 196b699

Please sign in to comment.