Sleep in the main goroutine gives more than enough time for both the a and b goroutines to finish running. Start a go a() goroutine for i := 0; i < 50; ...
確定! 回上一頁