Loop with timer interval

how to return a Result every time interval from loop

Can you give more details? When you return something, the function stops, so you can't really keep looping if you return. But it's very possible I misunderstood what you are asking.

this is exactly what i wanted, please help me,
I use it in a server which has to send a message to clients every minute