Open JoJo10Smith opened 1 year ago
I realized that there was a better implementation which I will explain below:
current_time
and set an end_time
to be the current_time
+ optional timeout
, if timeout
is not given then set the end_time
= current_time
. current_time
<= end_time
keep trying to remove any free objects that have idled for too long. obj
, if not then get the current_time
again, if it is before the end_time
try removing free objects again.RuntimeError.
else return obj
I look forward to hearing any feedback/ responding to questions Thanks Jordan
In response to #519
This will add the blocking functionality to the get function with the following optional parameters:
This is in response to issue #519