MCPcopy Create free account
hub / github.com/bhouston/behave-graph / constructor

Method constructor

packages/core/src/Nodes/AsyncNode.ts:75–84  ·  view source on GitHub ↗
(
    node: Omit<INode, 'nodeType'> &
      Pick<TAsyncNodeDef, 'triggered' | 'initialState' | 'dispose'>
  )

Source from the content-addressed store, hash-verified

73 private state: TAsyncNodeDef['initialState'];
74
75 constructor(
76 node: Omit<INode, 'nodeType'> &
77 Pick<TAsyncNodeDef, 'triggered' | 'initialState' | 'dispose'>
78 ) {
79 super({ ...node, nodeType: NodeType.Async });
80
81 this.triggeredInner = node.triggered;
82 this.disposeInner = node.dispose;
83 this.state = node.initialState;
84 }
85
86 triggered = (
87 engine: Pick<Engine, 'commitToNewFiber'>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected