(sentence: ISentence)
| 7 | * @param sentence |
| 8 | */ |
| 9 | export const wait = (sentence: ISentence): IPerform => { |
| 10 | const duration = Number(sentence.content); |
| 11 | const performName = `wait${Math.random().toString()}`; |
| 12 | const nobreak = getBooleanArgByKey(sentence, 'nobreak') ?? false; |
| 13 | |
| 14 | return { |
| 15 | performName, |
| 16 | duration: duration, |
| 17 | goNextWhenOver: true, |
| 18 | isHoldOn: false, |
| 19 | stopFunction: () => { |
| 20 | // 无需状态清理 |
| 21 | }, |
| 22 | blockingNext: () => nobreak, |
| 23 | blockingAuto: () => nobreak, |
| 24 | }; |
| 25 | }; |
nothing calls this directly
no test coverage detected