(
private readonly actor: Tickable<A>,
private readonly changed: (actions: A[]) => Promise<void>,
private readonly now: () => number = Date.now,
)
| 13 | error?: Error; |
| 14 | |
| 15 | constructor( |
| 16 | private readonly actor: Tickable<A>, |
| 17 | private readonly changed: (actions: A[]) => Promise<void>, |
| 18 | private readonly now: () => number = Date.now, |
| 19 | ) {} |
| 20 | |
| 21 | tick(trigger?: Call, source: "timer" | "post-tool" = "timer"): Promise<void> { |
| 22 | if (!this.active) return Promise.resolve(); |
nothing calls this directly
no outgoing calls
no test coverage detected