As documented in the angular docs,
timeout – {number|Promise} – timeout in milliseconds, or promise that should abort the request when resolved.
Right now I am setting timeout to promise, so I can manually cancel the request by promise.resolve().
Right now, I also want to make it capable to config timeout value, instead of having the request timeout being 120 seconds.
How can I configure it without affecting the existing cancel request functionality?