effect-io-ai

Package: effect
Module: RcMap

RcMap.State.Entry

Represents an individual entry in the RcMap, containing the resource’s metadata including reference count, expiration time, and lifecycle management.

When to use

Use when inspecting the stored resource, reference count, and idle lifecycle metadata for a single key.

Signature

export interface Entry<A, E> {
    readonly deferred: Deferred.Deferred<A, E>
    readonly scope: Scope.Closeable
    readonly finalizer: Effect.Effect<void>
    readonly idleTimeToLive: Duration.Duration
    fiber: Fiber.Fiber<void> | undefined
    expiresAt: number
    refCount: number
  }

Source

Since v4.0.0