Skip to content

fix(core): prefer rpc brodcast to use Promise.allSettled instead of Promise.all#281

Merged
antfu merged 1 commit into
vitejs:mainfrom
huang-julien:fix/broadcast_allsettled
Apr 8, 2026
Merged

fix(core): prefer rpc brodcast to use Promise.allSettled instead of Promise.all#281
antfu merged 1 commit into
vitejs:mainfrom
huang-julien:fix/broadcast_allsettled

Conversation

@huang-julien

Copy link
Copy Markdown
Contributor

Description

This PR change RpcFunctionHost.broadcast to use Promise.allSettled instead of Promise.all. If a brpc._call() fn throws, it probably shouldn't make the whole brodcast() call throw

Linked Issues

Additional context

@pkg-pr-new

pkg-pr-new Bot commented Apr 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@281

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@281

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@281

@vitejs/devtools-rpc

npm i https://pkg.pr.new/@vitejs/devtools-rpc@281

@vitejs/devtools-self-inspect

npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@281

commit: e3f49b3

@antfu antfu merged commit 06a093c into vitejs:main Apr 8, 2026
5 of 6 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