Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func (strategy *strategy) runBasicDecisions(t ticker, start bool) {
- var basicDecisions = []func(status chan bool, t ticker, start bool, wg *sync.WaitGroup) bool{
- strategy.BuyDecisions.Percent.shouldBuy,
- }
- var wg sync.WaitGroup
- status := make(chan bool, len(basicDecisions))
- for _, decision := range basicDecisions {
- wg.Add(1)
- go decision(status, t, start, &wg)
- }
- wg.Wait()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement