Files
mpbot-github/ci/worker.go
2017-07-09 15:02:08 +00:00

15 lines
323 B
Go

package ci
// worker describes a generic worker holding a pointer
// to the Session it belongs to and a wait() method
// that pauses execution until the worker quits.
type worker struct {
session *Session
// signal to unblock wait()
quitChan chan byte
}
func (worker *worker) wait() byte {
return <-worker.quitChan
}