Hyperlinkv0.8.0-beta.28

CustomQueueHyperlink

CustomQueueHyperlink.serveRemoteconstsrc/CustomQueueHyperlink.ts:613
<
  Self,
  F extends CustomQueueItemFields = CustomQueueItemFields,
  E = never,
  R = never,
  RR = never
>(
  tag: HyperlinkTag<Self, CustomQueueInstanceSpec<F>>,
  config: CustomQueueLayerConfig<Schema.Struct<F>["Type"], E, R, RR>
): any

Serve this custom queue remotely (served-only) — the engine-running counterpart to Hyperlink.serveRemote. Mounts the queue's RPC handlers and registers into Hyperlink.servedHyperlinksLayer without granting the local instance, preserving the worker requirement R for per-resource Layer.provide. For a pure gateway/edge; use serve when the serving node also drives the queue.

Soft-defaults Store.Storage. Override with Layer.provide / provideMerge(AppStore).

export const serveRemote = <
  Self,
  F extends CustomQueueItemFields = CustomQueueItemFields,
  E = never,
  R = never,
  RR = never,
>(
  tag: HyperlinkTag<Self, CustomQueueInstanceSpec<F>>,
  config: CustomQueueLayerConfig<Schema.Struct<F>["Type"], E, R, RR>,
) =>
  withDefaultMemory(
    Layer.unwrap(
      Effect.map(buildCustomQueueImpl(tag, config), (built) =>
        Hyperlink.serveRemote(tag, built as any) as any,
      ),
    ) as any,
  ) as any;
Referenced by 1 symbols