Consider having remote.spawn
return a future w/ the result
#77
Labels
Milestone
remote.spawn
return a future w/ the result
#77
I think that is will be common to want to get the result of a of a spawned task. We should consder having
remote.spawn
(and other task spawning fns) return a future w/ the result.The question will then be what happens if the returned future is dropped instead of consumed. As per this comment I would suggest that, by default, dropping the result future cancels the task, unless a
result.detach()
is called.There should also be a "spawn" variant that doesn't return a future in order to avoid the allocation. I would suggest
remote.fire(_fn_)
Related: #75, #57
The text was updated successfully, but these errors were encountered: