@datadog/mobile-react-native
Version:
A client-side React Native module to interact with Datadog
25 lines (23 loc) • 679 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.executeWithDelay = void 0;
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
const executeWithDelay = async (callback, delay) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
try {
resolve(callback());
} catch (e) {
reject(e);
}
}, delay);
});
};
exports.executeWithDelay = executeWithDelay;
//# sourceMappingURL=jsUtils.js.map