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

fetch is a noop when on the same worker #19044

Merged
merged 1 commit into from
Apr 21, 2021
Merged

Conversation

SimonDanisch
Copy link
Contributor

I was quite confused by this example, since I didn't realize that there is a getindex(f::Future, args...) = getindex(fetch(f), args...).
Because of this I misinterpreted the example (my first conclusion: remote_call must magically unpack the Future).
Also, it didn't really make clear, that fetch turns into a noop if applied to a Future from the same worker.
I tried to add this information in a concise way.
If I failed at this, it'd be nice if someone else could rewrite this text ;)

@amitmurthy
Copy link
Contributor

LGTM. Please merge after formatting changes.

@kshyatt kshyatt added docs This change adds or pertains to documentation parallelism Parallel or distributed computation labels Oct 22, 2016
I was quite confused by this example, since I didn't realize that there is a `getindex(f::Future, args...) = getindex(fetch(f), args...)`.
Because of this I misinterpreted the example (my first conclusion: `remote_call` must magically unpack the `Future`).
Also, it didn't really make clear, that fetch turns into a noop if applied to a `Future` from the same worker.
I tried to add this information in a concise way.
@vtjnash vtjnash changed the base branch from release-0.5 to master April 20, 2021 17:28
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Apr 20, 2021
@vtjnash vtjnash merged commit 770faac into JuliaLang:master Apr 21, 2021
@SimonDanisch SimonDanisch deleted the patch-3 branch April 21, 2021 20:15
@simeonschaub simeonschaub removed the merge me PR is reviewed. Merge when all tests are passing label Apr 28, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
I was quite confused by this example, since I didn't realize that there is a `getindex(f::Future, args...) = getindex(fetch(f), args...)`.
Because of this I misinterpreted the example (my first conclusion: `remote_call` must magically unpack the `Future`).
Also, it didn't really make clear, that fetch turns into a noop if applied to a `Future` from the same worker.
I tried to add this information in a concise way.
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
I was quite confused by this example, since I didn't realize that there is a `getindex(f::Future, args...) = getindex(fetch(f), args...)`.
Because of this I misinterpreted the example (my first conclusion: `remote_call` must magically unpack the `Future`).
Also, it didn't really make clear, that fetch turns into a noop if applied to a `Future` from the same worker.
I tried to add this information in a concise way.
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
I was quite confused by this example, since I didn't realize that there is a `getindex(f::Future, args...) = getindex(fetch(f), args...)`.
Because of this I misinterpreted the example (my first conclusion: `remote_call` must magically unpack the `Future`).
Also, it didn't really make clear, that fetch turns into a noop if applied to a `Future` from the same worker.
I tried to add this information in a concise way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation parallelism Parallel or distributed computation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants