Skip to content

fake.AfterFunc synchronization improvements

Compare
Choose a tag to compare
@dfinkel dfinkel released this 16 Sep 15:33
· 11 commits to master since this release
9d1cb19

Provide guarantees about AfterFunc goroutines having scheduled by the time fake.Clock.Advance and fake.Clock.SetClock have returned.

Similarly, add a sync.WaitGroup to track the completion of AfterFunc callbacks (and expose it via the new fake.Clock.WaitAfterFuncs()).