failIfInterrupted

Fail with RuntimeException instead of InterruptedException if that happens.

Example:


  failIfInterrupted(() ->
     // execute method that may throw InterruptedException
  );