Break out of while loop after certain timeout

In reply to dave_59:
@dave_59: ‘fork-join_any’ is not being recognized as a valid syntax. I get an error at join_any. Only fork-join seems to be valid for the compiler. What do I do?