Replies: 3 comments 8 replies
-
I don't think there's be much harm in having a less-constrained input type, but this seems fine for an MVP. |
Beta Was this translation helpful? Give feedback.
-
Without closures, not being able to pass any arguments to the function is a severe limitation that would require jumping through hoops of global state again in many cases. I think we should definitely allow spawn to take arguments and pass them to the function. I agree that it doesn't need results, however. |
Beta Was this translation helpful? Give feedback.
-
i'd suggest to make it take any function parameters as |
Beta Was this translation helpful? Give feedback.
-
The
thread.spawn
instruction is currently defined to invoke a very constrainedshared
function type:[i32] -> []
. This section explains some of the motivation for these constraints, but other opinions are valuable here. What should the spawned function's type be?Beta Was this translation helpful? Give feedback.
All reactions