forked from mystiq/hydrogen-web
Merge branch 'bwindels/ie11' of github.com:vector-im/hydrogen-web into bwindels/ie11
This commit is contained in:
commit
3154b047a6
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import {
|
||||||
|
AbortError,
|
||||||
|
ConnectionError
|
||||||
|
} from "../error.js";
|
||||||
|
|
||||||
|
|
||||||
export function abortOnTimeout(createTimeout, timeoutAmount, requestResult, responsePromise) {
|
export function abortOnTimeout(createTimeout, timeoutAmount, requestResult, responsePromise) {
|
||||||
const timeout = createTimeout(timeoutAmount);
|
const timeout = createTimeout(timeoutAmount);
|
||||||
// abort request if timeout finishes first
|
// abort request if timeout finishes first
|
||||||
|
|
Loading…
Reference in a new issue