コード例 #1
0
ファイル: supervisor_test.go プロジェクト: rpeer-denis/tcgl
// methodChild loops until the handle method signals termination.
func methodChild(h *supervisor.Handle, s *starts) error {
	s.incr(h)
	for !h.IsTerminated() {
		time.Sleep(10 * time.Millisecond)
	}
	return nil
}