How can I delay an http request only if it completes under 1second.
first scenario: - http request completes in 300ms, then we wait until 1 second ends.
second scenario: - http request completes in 1 second and 300ms, then we DO NOT delay.
how to accomplish this with observables ?