github.com/loov/combiner@v0.1.0/testsuite/util.go (about)

     1  package testsuite
     2  
     3  func StartClose(c Combiner) func() {
     4  	if r, ok := c.(Runner); ok {
     5  		go r.Run()
     6  		return r.Close
     7  	}
     8  	return func() {}
     9  }