MCPcopy Create free account
hub / github.com/cli/cli / constructor

Method constructor

evals/src/core/actor.ts:15–19  ·  view source on GitHub ↗
(
    private readonly actor: Tickable<A>,
    private readonly changed: (actions: A[]) => Promise<void>,
    private readonly now: () => number = Date.now,
  )

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected