Rebase @tspawnat to Base.@spawn for interpolation syntax
Closed this issue · 2 comments
Lines 255 to 272 in 69a6b09
Could the interpolation syntax support present in Threads.@spawn
be added here? Looks like it could be done fairly easily with a bit of copy-paste:
Interesting - I bet the Base.@spawn
code got updated past v1.3, because at the time, the 1.3 code was mimicked as closely as possible. I'll check to see if an update here would break 1.3 compatibility, but otherwise this is a no-brainer.
It might, actually. I'm not sure if Base._lift_one_interp!
was available in v1.3. I tested on v1.4.2. If it's indeed breaking for v1.3 could a reasonable workaround be to wrap the definitions in a conditional checking Julia's version? e.g. if Julia >1.4 use interpolated version, else existing? That ought to make the upgrade transparent and consistent with the functionality of @spawn
by Julia version