@ericchiang.bsky.social hey question about your synctest blog: do you really need that "+ time.Millisecond" or is there any determinism that the goroutine will get to run 3 times without it? oblique.security/blog/go-sync...
1 repost1 like
@ericchiang.bsky.social hey question about your synctest blog: do you really need that "+ time.Millisecond" or is there any determinism that the goroutine will get to run 3 times without it? oblique.security/blog/go-sync...
1 repost1 like
Yep! If two goroutines are blocked by sleeping the same amount of time, then synctest picks which to unblock at random: go.dev/play/p/J7XMk...