How To Implement Interrupt Or Task Inside While Loop In Cpp File Without Void Loop How

How To Implement Interrupt Or Task Inside While Loop In Cpp File Without Void Loop How