MCPcopy Create free account
hub / github.com/Effect-TS/effect / annotate

Function annotate

packages/effect/src/unstable/workflow/Activity.ts:159–164  ·  view source on GitHub ↗
(tag: Context.Key<any, any>, value: any)

Source from the content-addressed store, hash-verified

157 exitSchemaPartial: Schema.Exit(successSchemaJson, errorSchemaJson, Schema.Unknown),
158 annotations: options.annotations ?? Context.empty(),
159 annotate(tag: Context.Key<any, any>, value: any) {
160 return make({
161 ...options,
162 annotations: Context.add(self.annotations, tag, value)
163 })
164 },
165 annotateMerge(context: Context.Context<any>) {
166 return make({
167 ...options,

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected