@@ -346,7 +346,8 @@ defmodule Registry do
346346
347347 The registry requires the following keys:
348348
349- * `:keys` - chooses if keys are `:unique`, `:duplicate`, `{:duplicate, :key}`, or `{:duplicate, :pid}`
349+ * `:keys` - chooses if keys are `:unique`, `:duplicate`,
350+ `{:duplicate, :key}`, or `{:duplicate, :pid}`
350351 * `:name` - the name of the registry and its tables
351352
352353 The following keys are optional:
@@ -358,17 +359,17 @@ defmodule Registry do
358359 crashes. Messages sent to listeners are of type `t:listener_message/0`.
359360 * `:meta` - a keyword list of metadata to be attached to the registry.
360361
361- For `:duplicate` registries, you can specify the partitioning strategy
362- directly in the `:keys` option:
362+ For `:duplicate` registries, you can specify the partitioning strategy
363+ directly in the `:keys` option:
363364
364- * `:duplicate` or `{:duplicate, :pid}` - Use `:pid` partitioning (default)
365- when you have keys with many entries (e.g., one topic with many subscribers).
366- This is the traditional behavior and groups all entries from the same process together.
365+ * `:duplicate` or `{:duplicate, :pid}` - Use `:pid` partitioning (default)
366+ when you have keys with many entries (e.g., one topic with many subscribers).
367+ This is the traditional behavior and groups all entries from the same process together.
367368
368- * `{:duplicate, :key}` - Use `:key` partitioning when entries are spread across
369- many different keys (e.g., many topics with few subscribers each). This makes
370- key-based lookups more efficient as they only need to check a single partition
371- instead of all partitions.
369+ * `{:duplicate, :key}` - Use `:key` partitioning when entries are spread across
370+ many different keys (e.g., many topics with few subscribers each). This makes
371+ key-based lookups more efficient as they only need to check a single partition
372+ instead of all partitions.
372373
373374 """
374375 @ doc since: "1.5.0"
0 commit comments