Answer the question
In order to leave comments, you need to log in
How to organize a cyclic event in Golang?
Here is an example code in Python
async def fff():
count = 0
while True:
print(count)
count += 1
await asyncio.sleep(86400)
e> Answer the question
In order to leave comments, you need to log in
An example and a question are completely different. The above example is excellent, line for line, to go to Go.
func fff() {
count := 0
for {
print(count)
count += 1
}
}
The above Python code executes an event more than once every 24 hours.
If you need once every 24 hours, you should study the tickers. https://gobyexample.com/tickers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question