- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CloseAndWait (0.3 sec)
-
src/cmd/go/internal/script/state.go
env: env, envMap: envMap, } s.Setenv("PWD", absWork) return s, nil } // CloseAndWait cancels the State's Context and waits for any background commands to // finish. If any remaining background command ended in an unexpected state, // Close returns a non-nil error. func (s *State) CloseAndWait(log io.Writer) error { s.cancel() wait, err := Wait().Run(s) if wait != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:02 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/script/scripttest/scripttest.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 11 20:12:18 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/script.go
return nil, err } scriptName := filepath.Base(scriptPath) scriptLog := new(strings.Builder) err = s.engine.Execute(st, scriptName, bufio.NewReader(bytes.NewReader(ar.Comment)), scriptLog) closeErr := st.CloseAndWait(scriptLog) logger.Printf("%s:", scriptName) io.WriteString(logger.Writer(), scriptLog.String()) io.WriteString(logger.Writer(), "\n") if err != nil { return nil, err } if closeErr != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 19:37:03 UTC 2022 - 9K bytes - Viewed (0) -
src/cmd/go/internal/script/engine.go
// // If the script runs to completion or ends by a 'stop' command, // Execute returns nil. // // Execute does not stop background commands started by the script // before returning. To stop those, use [State.CloseAndWait] or the // [Wait] command. func (e *Engine) Execute(s *State, file string, script *bufio.Reader, log io.Writer) (err error) { defer func(prev *Engine) { s.engine = prev }(s.engine) s.engine = e
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 22.2K bytes - Viewed (0)