(syncOnly)
| 41 | } |
| 42 | |
| 43 | async runForLoop(syncOnly) { |
| 44 | const result = { |
| 45 | sync: {}, |
| 46 | async: {} |
| 47 | }; |
| 48 | |
| 49 | if (syncOnly) { |
| 50 | await this.runForLoopSync(result.sync, "call"); |
| 51 | } else { |
| 52 | await this.runForLoopAsync(result.async, "callAsync"); |
| 53 | await this.runForLoopAsync(result.async, "promise"); |
| 54 | } |
| 55 | |
| 56 | await this.runForLoopSync(result.sync, "callAsync"); |
| 57 | await this.runForLoopSync(result.sync, "promise"); |
| 58 | |
| 59 | return result; |
| 60 | } |
| 61 | |
| 62 | async runForLoopAsync(result, method) { |
| 63 | { |
no test coverage detected