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

Function annotate

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

Source from the content-addressed store, hash-verified

345const Proto = {
346 [TypeId]: TypeId,
347 annotate(this: AnyWithProps, tag: Context.Key<any, any>, value: any) {
348 return makeProto({
349 _tag: this._tag,
350 payloadSchema: this.payloadSchema,
351 successSchema: this.successSchema,
352 errorSchema: this.errorSchema,
353 annotations: Context.add(this.annotations, tag, value),
354 idempotencyKey: this.idempotencyKey,
355 suspendedRetrySchedule: this.suspendedRetrySchedule
356 })
357 },
358 annotateMerge(this: AnyWithProps, context: Context.Context<any>) {
359 return makeProto({
360 _tag: this._tag,

Callers

nothing calls this directly

Calls 2

makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected