docs(cordis): document Timer wrapper migration and local docs

This commit is contained in:
Shigma committed 2026-10-15 16:47:43 +08:00
1 parent 7618ccec69
commit f10be1f63a
10 files changed
+81 -7

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ describe('Cordis Timer', () => {
throttled('second')
await vi.advanceTimersByTimeAsync(10)
expect(callback.mock.calls).toEqual(noTrailing ? [['first']] : [['first'], ['second']])
throttled('pending')
throttled('before disposal')
const calls = callback.mock.calls.length
throttled.dispose()
await vi.advanceTimersByTimeAsync(20)