/* two subscriptions that never depended on one another. `listen` is an invoke like any other, so one behind the other is two bridge round trips at launch for nothing. */ await Promise.all([ listen("soulseek:library-changed", () => { clearTimeout(timer); timer = setTimeout(async () => { try { lib.albums = await api.libraryAlbums(); } catch { /* keep */ } await refreshRecents(); void refreshStats(); }, 600); }), /* a playlist mutation (the desktop's commands emit it) re-lists them */ listen("soulseek:playlists-changed", () => { void refreshPlaylists(); }), ]);