Avoid calling blocking functions with an infinite timeout | CAST Appmarq