fix: timeout

This commit is contained in:
Xmader 2020-11-13 18:50:08 -05:00
parent 43d8b46768
commit 8d36aead85
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -200,7 +200,7 @@ export namespace BtnAction {
}
}
export const process = (fn: () => any, fallback?: () => Promisable<void>, timeout = Infinity): BtnAction => {
export const process = (fn: () => any, fallback?: () => Promisable<void>, timeout = 10 * 60 * 1000 /* 10min */): BtnAction => {
return async (name, btn, setText): Promise<void> => {
const _onclick = btn.onclick