Add query cancellation for play queue requests

- Opens a notification after 2s to allow for manual cancellation of in-progress query
This commit is contained in:
jeffvli 2023-05-20 23:13:20 -07:00
parent 652c4a1f81
commit 292737d53c
2 changed files with 65 additions and 2 deletions

View file

@ -1001,3 +1001,7 @@ export type SearchResponse = {
albums: Album[];
songs: Song[];
};
export const instanceOfCancellationError = (error: any) => {
return 'revert' in error;
};