Skip to content

Introduce generic ISyncCache<T> and apply to DelayedComputePolicy dedup - #1571

Merged
qtomlinson merged 2 commits into
clearlydefined:masterfrom
qtomlinson:qt/enqueue_dedup
May 6, 2026
Merged

qtomlinson merged 2 commits into
clearlydefined:masterfrom
qtomlinson:qt/enqueue_dedup

Conversation

@qtomlinson

Copy link
Copy Markdown
Collaborator
  • Genericize ISyncCache with a ValueType parameter; get() returns ValueType | null
  • MemoryCache implements ISyncCache
  • Type _enqueueCache as ISyncCache in DelayedComputePolicy
  • Use strict === true guard when checking dedup marker
  • Fix test stubs to not leak Map/boolean return values from callsFake

@qtomlinson
qtomlinson marked this pull request as ready for review May 5, 2026 18:36
@qtomlinson
qtomlinson requested a review from JamieMagee May 5, 2026 18:36
- Genericize ISyncCache with a ValueType parameter; get() returns ValueType | null
- MemoryCache implements ISyncCache<unknown>
- Type _enqueueCache as ISyncCache<boolean> in DelayedComputePolicy
- Use strict === true guard when checking dedup marker
- Fix test stubs to not leak Map/boolean return values from callsFake
@qtomlinson
qtomlinson merged commit f2469d0 into clearlydefined:master May 6, 2026
4 checks passed
@qtomlinson
qtomlinson deleted the qt/enqueue_dedup branch May 6, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants