@petro-kushchak/homebridge-homepod-radio
Version:
Homebridge accessory for streaming radio to Homepod Mini and Apple TV
13 lines • 377 B
JavaScript
export async function timeout(duration, defaultValue) {
return await new Promise((resolve) => setTimeout(() => {
resolve(defaultValue);
}, duration));
}
export async function delay(duration, value) {
return new Promise((resolve) => {
setTimeout(() => {
resolve(value);
}, duration);
});
}
//# sourceMappingURL=promises.js.map