feat(plugins): listenbrainz and lastfm

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Sonnet 5.5 committed 2026-10-30 15:49:31 +01:00
1 parent 06a59e1b5c
commit 3eec2f2184
8 files changed
+545

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
/** Injectable sleep. Tests replace it with an immediate one via `setSleep`. */
let sleepImpl: (ms: number) => Promise<void> = (ms) => Bun.sleep(ms);
export function setSleep(fn: ((ms: number) => Promise<void>) | null): void {
sleepImpl = fn ?? ((ms) => Bun.sleep(ms));
}
export const sleep = (ms: number): Promise<void> => sleepImpl(ms);