@carbon/ibm-cloud-cognitive-cdai
Version:
Carbon for Cloud & Cognitive CD&AI UI components
18 lines (16 loc) • 410 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = sleep;
//
// Copyright IBM Corp. 2020, 2020
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
function sleep(timeInSeconds) {
return new Promise(function (resolve) {
setTimeout(resolve, timeInSeconds * 1000);
});
}