/*! Copyright 2019 Ron Buckton Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. THIRD PARTY LICENSE NOTICE: 'delay' is derived from the implementation of 'delay' in Promise Extensions for Javascript: https://github.com/rbuckton/prex Promise Extensions is licensed under the Apache 2.0 License: Promise Extensions for JavaScript Copyright (c) Microsoft Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import { Cancelable } from "@esfx/cancelable"; /** * Waits the specified number of milliseconds before resolving. * @param msec The number of milliseconds to wait before resolving. */ export declare function delay(msec: number): Promise; /** * Waits the specified number of milliseconds before resolving with the provided value. * @param msec The number of milliseconds to wait before resolving. * @param value An optional value for the resulting Promise. */ export declare function delay(msec: number, value: T | PromiseLike): Promise; /** * Waits the specified number of milliseconds before resolving. * @param cancelable A Cancelable * @param msec The number of milliseconds to wait before resolving. */ export declare function delay(cancelable: Cancelable, msec: number): Promise; /** * Waits the specified number of milliseconds before resolving with the provided value. * @param cancelable A Cancelable * @param msec The number of milliseconds to wait before resolving. * @param value An optional value for the resulting Promise. */ export declare function delay(cancelable: Cancelable, msec: number, value: T | PromiseLike): Promise; //# sourceMappingURL=index.d.ts.map