Thursday 4 April 2024

go lang OS.exit

 https://www.reddit.com/r/golang/comments/190prd0/osexit_in_goroutine_does_not_terminate_my_program/


os.Exit() in goroutine does not terminate my program

AFAIK os.Exit() terminates the process, even if you run the code in a goroutine.

Example:

No comments:

Post a Comment