If you want to use a hyper or racing operation, you must write it hyper for @blah.hyper(:batch(10_000)) or race for @blah.race(:batch(10_000)) . Or without parameters: hyper for @blah , race for @blah .
This was resolved because you might have code like for some-operation() { some-non-threadsafe-code } , where some-operation is part of a library or something else. Now you canβt say more if the for loop may contain unsafe code or not, and even if you know that the library does not return HyperSeq at this point in time, that if the author of the library comes up with this great idea to make some-operation faster, if you run it?
This requires that meaning "safely run this loop for the loop" is necessary right where the code is, and not just where the sequence is created.
source share