Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add onTimeoutError option #13

Merged
merged 4 commits into from
Jan 26, 2024
Merged

Conversation

AriPerkkio
Copy link
Contributor

Description

Alternative approach for #12. Now birpc doesn't need to handle serializing of args - the end users of this package can decide how to handle it.

Linked Issues

Additional context

This will help end users generate more descriptive error messages for timeouts. For example in Vitest we could now mark in the errors whether it's coming from main thread or worker thread, (cc. @sheremet-va).

Examples below, intentionally caused errors but they'll demonstrate the point:


@AriPerkkio AriPerkkio changed the title Feat/on timeout error feat: add onTimeoutError option Jan 23, 2024
@antfu antfu merged commit adb5fd8 into antfu:main Jan 26, 2024
2 checks passed
@AriPerkkio AriPerkkio deleted the feat/on-timeout-error branch January 26, 2024 11:19
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.

None yet

3 participants