Skip to content

fix(executor): Add missing try/catch#54

Merged
lxy-9602 merged 3 commits intoalibaba:mainfrom
Eyizoha:fix
Jan 15, 2026
Merged

fix(executor): Add missing try/catch#54
lxy-9602 merged 3 commits intoalibaba:mainfrom
Eyizoha:fix

Conversation

@Eyizoha
Copy link
Copy Markdown
Contributor

@Eyizoha Eyizoha commented Jan 15, 2026

Purpose

The comment for the Via function in the current future.h states that exceptions thrown by the callable will be captured and set in the promise, but the actual implementation does not handle this, leading to crashes. This PR addresses and fixes this issue.

Tests

Add new UT: DefaultExecutorTest.TestViaWithException

API and Format

No affect

Documentation

No introduce a new feature

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 15, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Collaborator

@lxy-9602 lxy-9602 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@lxy-9602 lxy-9602 merged commit 302fabd into alibaba:main Jan 15, 2026
8 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.

3 participants