Hyperlinkv0.9.0-beta.0

Lookup

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

Publish placement advice (requires Advice in context).

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