We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PartitionSupervisor.partitions/1
1 parent 4ad3e0a commit ea672ccCopy full SHA for ea672cc
1 file changed
lib/elixir/lib/partition_supervisor.ex
@@ -421,7 +421,7 @@ defmodule PartitionSupervisor do
421
Returns the number of partitions for the partition supervisor.
422
"""
423
@doc since: "1.14.0"
424
- @spec partitions(name()) :: pos_integer()
+ @spec partitions(name()) :: non_neg_integer()
425
def partitions(name) do
426
name |> table() |> partitions(name)
427
end
0 commit comments