mirror of
https://github.com/zoriya/v10.git
synced 2026-08-15 10:23:32 +00:00
refactor(store): remove queue and task system (#382)
This commit is contained in:
@@ -44,7 +44,7 @@ export function onEvent(target: EventTarget, type: string, options?: OnEventOpti
|
||||
export function onEvent(target: EventTarget, type: string, options?: OnEventOptions): Promise<Event> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const handleAbort = () => {
|
||||
reject(options?.signal?.reason ?? new DOMException('Aborted', 'AbortError'));
|
||||
reject(options?.signal?.reason ?? 'Aborted');
|
||||
};
|
||||
|
||||
// If already aborted, reject immediately
|
||||
|
||||
Reference in New Issue
Block a user