We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the function definition of Wait for the Cmd struct, the finished boolean prevents Wait from being called more than once
Wait
Cmd
finished
if c.finished { return errors.New("Wait was already called") } c.finished = true state, err := c.Process.Wait()
This behavior is different from exec.Cmd where Wait can be called multiple times. Allowing this makes certain concurrent tasks easier to synchronize.
exec.Cmd
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the function definition of
Wait
for theCmd
struct, thefinished
boolean preventsWait
from being called more than onceThis behavior is different from
exec.Cmd
whereWait
can be called multiple times. Allowing this makes certain concurrent tasks easier to synchronize.The text was updated successfully, but these errors were encountered: