You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@only_one begin ... end
This can be used inside a @tasks for ... end block to mark a region of code to be executed by only one
of the parallel tasks (all other tasks skip over this region).
From my understanding of the docstring
I was expecting
to print after 4 times (since a single task has to run 4 iterations of the loop). Instead, I get the output
Is this expected? Should the docstring be changed or I just got it wrong? It seems to me that this macro should be called
@only_once
instead.The text was updated successfully, but these errors were encountered: