Hyperlinkv0.9.0-beta.0

Lookup

Lookup.preferredconstsrc/Lookup.ts:459
(service: string | { readonly key: string }): Effect.Effect<
  Option.Option<string>,
  never,
  Advice
>

Read preferred directory nodeKey for a HyperService (Tag or wire key).

constructors
Source src/Lookup.ts:4598 lines
export const preferred = (
  service: string | { readonly key: string },
): Effect.Effect<Option.Option<string>, never, Advice> =>
  Effect.flatMap(Advice, (svc) =>
    svc.preferred(
      new PreferredRequest({ serviceKey: serviceKeyOf(service) }),
    ),
  );
Referenced by 1 symbols