fix: timeout
This commit is contained in:
parent
43d8b46768
commit
8d36aead85
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue