Skip to content

Commit 0e35dca

Browse files
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 f2958d3 commit 0e35dca

File tree

3 files changed

+239
-253
lines changed

3 files changed

+239
-253
lines changed

0 commit comments

Comments
 (0)