Hyperlinkv0.8.0-beta.28

Hyperlink

Hyperlink.ReadinessOftypesrc/Hyperlink.ts:2156
(
  service: Service,
  base: Effect.Effect<Readiness, never, any>
): Effect.Effect<Readiness, never, any>

Derive Readiness from a resource's materialized service — read its status, don't store new state. The second argument, base, is the readiness already on the tag (e.g. a contract factory's own check) — yield* base to extend it (a queue's phase === "running" and your dependency checks), or ignore it to replace it. Stacks: each withReadiness wraps the prior. Attach one with withReadiness; read the result with readinessCheck.

modelsReadinesswithReadinessreadinessCheck
Source src/Hyperlink.ts:21566 lines
export type ReadinessOf<Service> = (
  service: Service,
  base: Effect.Effect<Readiness, never, any>,
  // The derivation may depend on services (e.g. `Hyperlink.readinessOf(Database)`); that requirement
  // is satisfied by the serve context the node runs readiness in, and erased at this storage seam.
) => Effect.Effect<Readiness, never, any>;
Referenced by 4 symbols