i’ve a loop which gets data from some Websites and it takes about an hour for that loop to get the data and populate it in a database, this loop is in a thread and i want to add a button that pauses the thread until the button is clicked again and it resumes where it stopped.
how can i do this in a safe way?
i’ve a loop which gets data from some Websites and it takes about an
Share
Try this:
To resume: