1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-07 06:40:54 +00:00
trezor-wallet/src/utils/promiseUtils.js
2018-09-23 08:28:12 +02:00

6 lines
162 B
JavaScript

/* @flow */
export const resolveAfter = (msec: number, value?: any): Promise<any> => new Promise((resolve) => {
window.setTimeout(resolve, msec, value);
});