dispatch.retry is for requests that fail unpredictably, so I don't think
it's the right fit for what you're talking about. Instead of attempting
a request that will fail, I would track the expiration time in the db
driver interface and fetch a new session when the current time is within
some threshold of the expiration. Since this likely requires two
requests, you would flatMap the two futures.
Nathan
> --
> You received this message because you are subscribed to the Google
> Groups "Dispatch" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
dispatch-scal...@googlegroups.com
> <mailto:
dispatch-scal...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.