MCPcopy Index your code
hub / github.com/Effect-TS/effect / ensureEntity

Function ensureEntity

packages/cluster/src/ClusterWorkflowEngine.ts:95–103  ·  view source on GitHub ↗
(workflow: Workflow.Any)

Source from the content-addressed store, hash-verified

93 >
94 >()
95 const ensureEntity = (workflow: Workflow.Any) => {
96 let entity = entities.get(workflow.name)
97 if (!entity) {
98 entity = makeWorkflowEntity(workflow) as any
99 workflows.set(workflow.name, workflow)
100 entities.set(workflow.name, entity as any)
101 }
102 return entity!
103 }
104 const ensurePartialEntity = (workflowName: string) => {
105 let entity = partialEntities.get(workflowName)
106 if (!entity) {

Callers 1

Calls 3

makeWorkflowEntityFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…