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

Function Tag

packages/effect/src/Effect.ts:13523–13542  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

13521 : [X] extends [PromiseLike<infer A>] ? Effect<A, Cause.UnknownException, Self>
13522 : Effect<X, never, Self>
13523 } = (id) => () => {
13524 const limit = getStackTraceLimit()
13525 setStackTraceLimit(2)
13526 const creationError = new Error()
13527 setStackTraceLimit(limit)
13528 function TagClass() {}
13529 Object.setPrototypeOf(TagClass, TagProto)
13530 TagClass.key = id
13531 Object.defineProperty(TagClass, "use", {
13532 get() {
13533 return (body: (_: any) => any) => core.andThen(this, body)
13534 }
13535 })
13536 Object.defineProperty(TagClass, "stack", {
13537 get() {
13538 return creationError.stack
13539 }
13540 })
13541 return makeTagProxy(TagClass as any)
13542 }
13543
13544type MissingSelfGeneric = `Missing \`Self\` generic - use \`class Self extends Effect.Service<Self>()...\``
13545

Callers

nothing calls this directly

Calls 3

makeTagProxyFunction · 0.85
getStackTraceLimitFunction · 0.50
setStackTraceLimitFunction · 0.50

Tested by

no test coverage detected