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

Remove unnecessary boxing of tokio::time::Sleep #9105

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

piscisaureus
Copy link
Member

No description provided.

Copy link
Member

@bartlomieju bartlomieju 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
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

LGTM with a question: is the pin_project dependency necessary or convenient?

@piscisaureus
Copy link
Member Author

piscisaureus commented Jan 13, 2021

LGTM with a question: is the pin_project dependency necessary or convenient?

Somewhere in between: it can be avoided but then we would have to manually add unsafe code to to do the projection.
Note that deno_core also depends on pin_project. Tokio seems to use pin_project_lite, which might be worth looking into.

@piscisaureus piscisaureus deleted the unbox branch January 13, 2021 19:28
@piscisaureus piscisaureus merged commit 060bfe7 into denoland:master Jan 13, 2021
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