Skip to content

Listen to multiple events at once - #6

Merged
fregante merged 3 commits into
fregante:mainfrom
SunsetTechuila:main
Jan 21, 2026
Merged

fregante merged 3 commits into
fregante:mainfrom
SunsetTechuila:main

Conversation

@SunsetTechuila

Copy link
Copy Markdown
Contributor

@fregante

Copy link
Copy Markdown
Owner

This drops support for the native signal. You'd have to add a listener to it and abort the local controller.

@SunsetTechuila

Copy link
Copy Markdown
Contributor Author

You'd have to add a listener to it and abort the local controller.

But I already do exactly that..?

one-event/index.ts

Lines 27 to 30 in b3d769a

nativeOptions.signal?.addEventListener('abort', () => {
controller.abort();
reject(nativeOptions.signal!.reason);
}, {once: true});

@fregante fregante changed the title Allow for multiple event types Listen to multiple events at once Jan 21, 2026
@fregante
fregante merged commit f57ae5d into fregante:main Jan 21, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants