Skip to content

Correct the absolute-time argument type for Process.send_after/4 - #16084

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:fix/process-send-after-absolute-time
Nov 8, 2026
Merged

josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:fix/process-send-after-absolute-time

Conversation

@preciz

@preciz preciz commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

With abs: true, Process.send_after/4 accepts absolute monotonic timestamps, which can be negative. Its typespec currently restricts the time argument to non-negative integers.

Change the argument type to integer and clarify that relative timeouts must be non-negative.

Assisted-by: Codex CLI:GPT 6.1 Sol

@josevalim
josevalim merged commit da66f86 into elixir-lang:main Nov 8, 2026
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