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

Function annotate

packages/effect/src/unstable/workflow/Workflow.ts:321–331  ·  view source on GitHub ↗
(this: AnyWithProps, tag: Context.Key<any, any>, value: any)

Source from the content-addressed store, hash-verified

319const Proto = {
320 [TypeId]: TypeId,
321 annotate(this: AnyWithProps, tag: Context.Key<any, any>, value: any) {
322 return makeProto({
323 _tag: this._tag,
324 payloadSchema: this.payloadSchema,
325 successSchema: this.successSchema,
326 errorSchema: this.errorSchema,
327 annotations: Context.add(this.annotations, tag, value),
328 idempotencyKey: this.idempotencyKey,
329 suspendedRetrySchedule: this.suspendedRetrySchedule
330 })
331 },
332 annotateMerge(this: AnyWithProps, context: Context.Context<any>) {
333 return makeProto({
334 _tag: this._tag,

Callers

nothing calls this directly

Calls 2

makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected