1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-13 09:30:54 +00:00
trezor-wallet/src/utils/promiseUtils.js

6 lines
162 B
JavaScript
Raw Normal View History

2018-02-20 09:30:36 +00:00
/* @flow */
2018-07-30 10:52:13 +00:00
2018-09-23 06:28:12 +00:00
export const resolveAfter = (msec: number, value?: any): Promise<any> => new Promise((resolve) => {
window.setTimeout(resolve, msec, value);
});