As currently specified, you can pass any integral Number to Atomics.pause. The readme says "The non-negative integer argument iterationNumber [...]". I don't think it matters much either way, but in the spirit of more aggressively rejecting invalid values you may wish to reject negative numbers here.
As currently specified, you can pass any integral Number to
Atomics.pause
. The readme says "The non-negative integer argumentiterationNumber
[...]". I don't think it matters much either way, but in the spirit of more aggressively rejecting invalid values you may wish to reject negative numbers here.