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

future module is confusing, as is relationship to task #3611

Closed
jesse99 opened this issue Sep 28, 2012 · 6 comments
Closed

future module is confusing, as is relationship to task #3611

jesse99 opened this issue Sep 28, 2012 · 6 comments
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.

Comments

@jesse99
Copy link
Contributor

jesse99 commented Sep 28, 2012

Wanted to use a future and I was quite confused looking at the task module until I started examining the implementation. It would help a lot if fn future_result and probably fn try pointed people to the future module.

@brson
Copy link
Contributor

brson commented Oct 2, 2012

I would like to remove task's dependency on future completely. I think that future_result could just as easily return a port, though I haven't looked at it lately. Then future can move to std.

@brson
Copy link
Contributor

brson commented Oct 2, 2012

Also, future_result needs a different interface. It's awkward and deadlock prone.

@brson
Copy link
Contributor

brson commented Oct 2, 2012

See also #2491

@nikomatsakis
Copy link
Contributor

Not critical for 0.6; removing milestone

@graydon
Copy link
Contributor

graydon commented May 29, 2013

Future is currently in extra (nee std) and task::future_result currently produces a Port<TaskResult> for the caller to listen on (the function should probably be renamed).

extra::future does not seem terribly complex an interface anymore. Maybe this was filed back when it was more so?

@graydon
Copy link
Contributor

graydon commented May 29, 2013

closing as too-vague. specific enhancements welcome.

@jdm jdm closed this as completed May 29, 2013
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue May 19, 2024
Ignore the Helix configuration directory

For us Helix users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

No branches or pull requests

5 participants