Skip to content

Conversation

@UncleGrumpy
Copy link
Collaborator

Adds support for timeout tuples in the form of {timeout, Time :: timeout(), InfoMessage :: any()} in gen_server callback return action(). These callback return actions were introduced in OTP-28. They work similarly to timeout() actions, except insead of timeout handle_info/2 will receive the InfoMessage.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@UncleGrumpy
Copy link
Collaborator Author

Merging this pull request will allow for a cleaner implementation of repeated restart when a child fails to restart after a crash in #1958.

Adds support for timeout tuples in the form of `{timeout, Time :: timeout(), InfoMessage :: any()}`
in gen_server callback return `action()`. These callback return actions were introduced in OTP-28.
They work similarly to `timeout()` actions, except insead of `timeout` handle_info/2 will receive
the `InfoMessage`.

Signed-off-by: Winford <[email protected]>
@UncleGrumpy UncleGrumpy force-pushed the gen_server-timeout_return branch from dc3e74e to 4cfd368 Compare November 9, 2025 23:02
@bettio bettio merged commit 95cf805 into atomvm:main Nov 10, 2025
176 of 181 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants