I have a program that has to unconditionally respond after X seconds, that response can either be the actual response i need if under X seconds or some sort of "Gathering resources, please wait" message if the time has passed.
How can i do something along the lines of
make request
start timer
if request.responded:
return request
if timer.hasPassed(X):
return False
While still having the request active, ready to respond as soon as it is finished?
source https://stackoverflow.com/questions/73421076/how-can-i-create-a-simultaneous-routine-if-a-request-isnt-finished-after-x-mill
Comments
Post a Comment