Exemplo n.º 1
0
func ReadFromBeanstalkd(config beans.Config, waitGroup sync.WaitGroup, jobs chan<- interface{}) {
	go func() {
		defer waitGroup.Done()
		beansConn := beans.Dial(config)
		beansConn.ReadFromBeanstalkd(jobs)
	}()
}
Exemplo n.º 2
0
func WriteToBeanstalkd(config beans.Config, waitGroup sync.WaitGroup, jobs <-chan interface{}) {
	go func() {
		defer waitGroup.Done()
		beansConn := beans.Dial(config)
		beansConn.WriteToBeanstalkd(jobs)
	}()
}