Skip to content

Add methods into_raw(), from_raw(), and waker() #13

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

Closed
ghost opened this issue Dec 31, 2019 · 1 comment · Fixed by #16
Closed

Add methods into_raw(), from_raw(), and waker() #13

ghost opened this issue Dec 31, 2019 · 1 comment · Fixed by #16

Comments

@ghost
Copy link

ghost commented Dec 31, 2019

The Task struct should have:

fn into_raw(self) -> *const T;
unsafe fn from_raw(raw: *const T) -> Self;

Both Task and JoinHandle should also have:

fn waker(&self) -> Waker;
@ghost ghost closed this as completed in #16 Jan 6, 2020
@yoshuawuyts
Copy link
Contributor

Very cool! 🎉

This issue was closed.
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 a pull request may close this issue.

1 participant