summaryrefslogtreecommitdiff
path: root/engine/src/test
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-08-02 19:38:18 +0900
committerSho Sakuma <me@m1sk9.dev>2026-08-02 19:38:18 +0900
commit7e7d0875087185e6c68bb29f1d60bd51b300bfef (patch)
tree4c17b939b7d73813c5eebe8a29f382fc736e76af /engine/src/test
parent288d1e4a4babc136e8b3837d19970cc37023eb8e (diff)
downloadLunaticChat-7e7d0875087185e6c68bb29f1d60bd51b300bfef.tar.gz
LunaticChat-7e7d0875087185e6c68bb29f1d60bd51b300bfef.tar.bz2
LunaticChat-7e7d0875087185e6c68bb29f1d60bd51b300bfef.zip
refactor: extract the debounced async save
YamlPlayerSettingsStorage and ConversionCache each carried a line-for-line identical AtomicBoolean-plus-runDelayed debounce, five-second constant included, so changing the save cadence meant changing it twice and noticing that it was written twice. Extracting it also removed the only reason those two classes held a JavaPlugin: they took the whole plugin to reach the scheduler. They now take the collaborator they actually use, which is both narrower and testable without a running server. ChannelStorage is deliberately left alone - it saves through runNow with no debounce at all, and giving it one would change when writes happen. Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'engine/src/test')
0 files changed, 0 insertions, 0 deletions