Alternative approach for task waiting