We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@fetch
@fetchfrom
1 parent a75c1bd commit c1585dfCopy full SHA for c1585df
src/internals.jl
@@ -117,6 +117,24 @@ macro spawnat(thrdid, ex)
117
end
118
119
120
+"""
121
+ @fetch ex
122
+
123
+Shortcut for `fetch(@spawn(ex))`.
124
125
+macro fetch(ex)
126
+ :(fetch(@spawn($(esc(ex)))))
127
+end
128
129
130
+ @fetchfrom thrdid ex
131
132
+Shortcut for `fetch(@spawnat(thrdid, ex))`.
133
134
+macro fetchfrom(thrdid, ex)
135
+ :(fetch(@spawnat($(esc(thrdid)), $(esc(ex)))))
136
137
138
# Copied from base rather than calling it directly because who knows if it'll change in the future
139
function _lift_one_interp!(e)
140
letargs = Any[] # store the new gensymed arguments
0 commit comments