- The
gleam/otp/factory_supervisormodule has been added, for supervision of processes of a fixed type which are dynamically started while the program is running. - Fixed a bug where
InitFailedcould contain character lists instead of strings.
- The
callfunction in thegleam/otp/actormodule gains the labelssendingandwaiting, to match thecallfunction ofgleam/erlang/process.
- Improved the data displayed for Gleam actors in the Erlang observer.
- Corrected
gleam_stdlibrequirement.
- The
actormodule gains astop_abnormalfunction
- The
supervisormodule has been removed. - The
intensity_trackermodule has been removed. - The
taskmodule has been removed. - The supervision module has been introduced. This module contains types and functions usable by different supervisor implementations.
- In the
gleam/otp/static_supervisormodule:- The
start_linkmodule has been removed. - The
startmodule has been added. - The
supervisedmodule has been added. - Types and functions for defining child specifications have been moved to the
supervisionmodule. - Child ids are now generated, removing possibility of a collision.
- The
Supervisortype has been added.
- The
- In the
gleam/otp/actormodule:- The
to_erlang_start_resultfunction has been removed. - The
InitResulttype has been removed. - The
Spectype has been replaced with theBuildertype. - The
newfunction has been added. - The
new_with_initialiserfunction has been added. - The
startfunction has been removed. - The
start_specfunction has been renamed tostart. - The
Initialisedtype has been added, along with theinitialised,selecting, andreturningfunctions to create and work with it. - The
InitCrashedvariant ofStartErrorhas been replaced with theInitExitedvariant. - The
InitFailedvariant ofStartErrornow contains a string rather than anStartError. - The
Nexttype now has the state type as the first type parameter and the message type as the second. - The
Nexttype is now opaque. - The argument order of the actor message handler callback function has been changed so the state is the first argument, and the message is the second.
- The argument order of
callhas changed. - The
StartResultalias has been removed. - The
ErlangStartResultalias has been removed.
- The
- Fixed a bug where using
actor.Stop()with other reasons thanNormalwould stop the process withNormal.
- Fixed a bug where the static supervisor would return the incorrect value if it crashes when initialising.
- Fixed a bug where if an actor times out when starting it would not unlink from the parent.
- The deprecated
try_await_foreverfunction in thegleam/otp/taskmodule has been removed.
- Fixed a bug where the
significantparameter would not be passed to the supervisor instatic_supervisor.
- The
gleam/otp/taskgains thetry_await_allfunction.
- The
try_await_foreverfunction in thegleam/otp/taskmodule has been deprecated. - The
gleam/otp/taskmodule gains thepid,await2,await3, andawait4functions. - Tasks are no longer monitored.
- The minimum required Gleam version in
gleam.tomlhas been increased to match the actual requirement for this package.
Porttype has been deprecated in favour of thegleam_erlangpackagePorttype.
- Fixed support for older versions of Gleam.
- Fixed support for older versions of Gleam.
- The
gleam/otp/static_supervisormodule has been added, containing bindings to Erlang/OTP's supervisor module.
- Fixed bug: supervisors now abort restarting children if limits are exceeded.
- Fixed
gleam/otp/system.get_state/1calls that break in Erlang/OTP >= 26.1.get_state/1(used in debugging and tests) will error on Erlang/OTP <= 26.0 with "No case clause matched".
- The useless
gleam_otpmodule has been removed.
- Updated for Gleam v0.32.0.
- Version requirement for
gleam_erlangupdated to~> 0.22.
- The
actor.Continuerecord now contains an optionalSelector, which can be used to change the messages the actor is selecting. Thecontinueandwith_selectorbuilder functions have been added to aid with construction ofNextvalues. - The
gleam/otp/nodemodule has been removed in favour of thegleam/erlang/nodemodule in thegleam_erlangpackage.
- Updated for Gleam v0.30.
- Updated for Gleam v0.27.
- Updated for latest
gleam_erlangand Gleam versions.
- Fixed bug: tasks are now unmonitored by their parent after completion.
- Updated to use the process module in the
gleam_erlanglibrary`.
- The
gleam/otp/processmodule gains thepid_from_dynamicfunction. - The
gleam/otp/taskmodule gains theawait_foreverandtry_await_foreverfunctions.
- Updated for Gleam v0.19.0.
- Converted to use the Gleam build tool.
- Updated for Gleam v0.17.0.
- Updated to use the new
#()tuple syntax.
- Warnings fixed for current versions of Gleam.
- Port messages are no longer treated as regular channel messages by receivers.
- The
gleam/otp/actor.ErlangStartResulttype has been re-added. - The
gleam/otp/actormodule now re-exports thepidfunction of thegleam/otp/processmodule.
- The
gleam/otp/actor.ErlangStartResulttype has been removed.
- The
gleam/otp/process.Sendertype is now opaque.
- Initial minimal release.