Commit ea1bc18
committed
Rewrite
1. Don't advance time all at once, advance to each deadline.
2. Use a heap instead of constantly sorting/iterating.
3. Modernize the context logic to avoid extra goroutines.
4. Make calling Set/Add/etc. thread-safe. All callers will cooperatively
advance the clock until the requested time.1 parent 2d686ea commit ea1bc18
3 files changed
+239
-253
lines changed
0 commit comments