Esempio 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)
	}()
}
Esempio 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)
	}()
}