UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

14 lines (8 loc) 302 B
'use strict'; const internals = {}; module.exports = function (timeout, returnValue) { if (typeof timeout !== 'number' && timeout !== undefined) { throw new TypeError('Timeout must be a number'); } return new Promise((resolve) => setTimeout(resolve, timeout, returnValue)); };