(script: ChibiJson<any>, startState: any = null)
| 27 | } |
| 28 | |
| 29 | async runAsync(script: ChibiJson<any>, startState: any = null) { |
| 30 | if (!this.isAsync()) { |
| 31 | throw new Error('Can not run async functions in sync context'); |
| 32 | } |
| 33 | return this.getConsumer()._subroutineAsync(script, startState); |
| 34 | } |
| 35 | |
| 36 | setAsyncContext(isAsync: boolean) { |
| 37 | this.async = isAsync; |
no test coverage detected