Closed CharlesOkwuagwu closed 4 weeks ago
At the moment the best option is to wrap your Req call in Task.async(fun) |> Task.await(timeout)
. This is not good enough obviously, we will improve it, it's being tracked in https://github.com/wojtekmach/req/issues/428.
Please how do we limit the total request/response time to a fixed value?
This below does not work in limiting the total request/respose time
Req.get!("https://httpbin.org", connect_options: [timeout: 2000])