Return will work in the case of an infinite loop, if it is inside the body loop of course.
When the code of the body of the function reaches an the keyword, it will terminate, no matter what.
break keyword, will stop the loop and will transfer the flow of your code after the body of the loop.

Of course, you can use a "return", even if your function is of return value void.