Utility package to check if a current tread is being blocked