Join GitHub today
returning inside whenever block causes MoarVM panic #6503
On Thu, 07 Sep 2017 13:33:30 -0700, email@example.com wrote:
Odd. It should really be complaining about it being a return outside of the dynamic scope of the routine, since the whenever block will run on a different thread.
I wonder if we can make this magically do what you wanted it to. I think maybe we can, but it's non-trivial since essentially we'd need to be having the return control exception caught, cause the react block to be torn down, and then re-throw it back on the thread that did the react. Also that would break the current "react is just like supply except it blocks" thing.
“almost always” indeed. It does work sometimes. Interesting.
On 2017-09-07 13:33:30, firstname.lastname@example.org wrote: