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

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

Merged
merged 5 commits into from
Jan 30, 2024

Conversation

Xuanwo
Copy link
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>
Copy link
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
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
235 of 236 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants