()
| 156 | const now = Date.now() |
| 157 | result.info(message, { status: "started", ...extra }) |
| 158 | function stop() { |
| 159 | result.info(message, { |
| 160 | status: "completed", |
| 161 | duration: Date.now() - now, |
| 162 | ...extra, |
| 163 | }) |
| 164 | } |
| 165 | return { |
| 166 | stop, |
| 167 | [Symbol.dispose]() { |