Skip to content

refactor: Implement IntoFuture for operator futures to remove an alloc#4098

Merged
Xuanwo merged 5 commits intomainfrom
try-into-future
Jan 30, 2024
Merged

refactor: Implement IntoFuture for operator futures to remove an alloc#4098
Xuanwo merged 5 commits intomainfrom
try-into-future

Conversation

@Xuanwo
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo commented Jan 30, 2024

This PR will impelment IntoFuture for OperatorFuture to remove an alloc of Pin<Box<dyn Future>>. This PR also removes a significant amount of unnecessary code.

This PR modifies the return type of our public API without breaking it: Users' code can still compile and use it as before.

Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@github-actions github-actions bot added the releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" label Jan 30, 2024
@github-actions github-actions bot requested review from G-XD and oowl January 30, 2024 08:42
@Xuanwo Xuanwo requested a review from suyanhanx January 30, 2024 08:48
Copy link
Copy Markdown
Member

@PsiACE PsiACE left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

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

Thanks

@Xuanwo Xuanwo merged commit 48383aa into main Jan 30, 2024
@Xuanwo Xuanwo deleted the try-into-future branch January 30, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants