Skip to content

Fix spec of PartitionSupervisor.partitions/1#15151

Merged
josevalim merged 1 commit intoelixir-lang:mainfrom
pnezis:partitions-typespec
Mar 8, 2026
Merged

Fix spec of PartitionSupervisor.partitions/1#15151
josevalim merged 1 commit intoelixir-lang:mainfrom
pnezis:partitions-typespec

Conversation

@pnezis
Copy link
Copy Markdown
Contributor

@pnezis pnezis commented Mar 8, 2026

You can resize it to 0:

iex> PartitionSupervisor.start_link(child_spec: {Agent, fn -> %{} end}, name: PS, partitions: 4)
iex> PartitionSupervisor.resize!(PS, 0)
iex> PartitionSupervisor.partitions(PS)
0

@josevalim josevalim merged commit ea672cc into elixir-lang:main Mar 8, 2026
13 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants