26 Aug
2019
26 Aug
'19
11:19 p.m.
On 27/08/2019 02:05, JH wrote:
Nope, a function wrapped the pair of expires_at and async_wait for absolute time or expires_from_now async_wait for relative time.
Well, the underlying expiration mechanism is the same for both -- in fact expires_from_now is implemented by calling expires_at internally. Are you sure you're calculating the correct ptime for expires_at? It may perhaps help to use expires_from_now(x) to set an expiration and then call expires_at() to read the absolute expiration time that this set, and compare it with what you had calculated. Or conversely to call expires_at(x) and then read the relative time with expires_from_now() to see if that is as expected.