(milliseconds: number)
| 7 | } |
| 8 | |
| 9 | function spin(milliseconds: number) { |
| 10 | const start = performance.now() |
| 11 | while (performance.now() - start <= milliseconds) { |
| 12 | // do nothing |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | async function sayHello(name: string) { |
| 17 | console.info('[api] sayHello.start') |