Hyperlinkv0.8.0-beta.28

Lookup

Lookup.adviseconstsrc/Lookup.ts:367
(input: {
  readonly resourceKey: string
  readonly prefer: string
}): Effect.Effect<string, never, Advice>

Publish placement advice (requires Advice in context).

yield* Lookup.advise({ resourceKey: Worker.key, prefer: "fleet/Worker#w2" })
constructorsAdvice
Source src/Lookup.ts:36712 lines
export const advise = (input: {
  readonly resourceKey: string;
  readonly prefer: string;
}): Effect.Effect<string, never, Advice> =>
  Effect.flatMap(Advice, (svc) =>
    svc.advise(
      new AdviseRequest({
        resourceKey: input.resourceKey,
        prefer: input.prefer,
      }),
    ),
  );
Referenced by 2 symbols