failIfInterrupted
Fail with RuntimeException instead of InterruptedException if that happens.
Example:
failIfInterrupted(() ->
// execute method that may throw InterruptedException
);
Content copied to clipboard
Fail with RuntimeException instead of InterruptedException if that happens.
Example:
failIfInterrupted(() ->
// execute method that may throw InterruptedException
);