1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-05 15:49:00 +00:00
trezor-wallet/src/js/utils/promiseUtils.js

12 lines
336 B
JavaScript
Raw Normal View History

2018-02-20 09:30:36 +00:00
/* @flow */
'use strict';
// import root from 'window-or-global';
// import Promise from 'es6-promise';
export async function resolveAfter(msec: number, value: any = null): Promise {
return await new Promise((resolve) => {
//root.setTimeout(resolve, msec, value);
window.setTimeout(resolve, msec, value);
});
}