Skip to content

v0.2.0

Latest
Compare
Choose a tag to compare
@jbsf2 jbsf2 released this 26 Nov 03:47
· 1 commit to main since this release

Changes

  • Feature: get/2 now supports use of the $callers dictionary key for navigating the hierarchy of processes that initiate a supervised Task. This is useful, for example, when code under test starts a task using a Supervisor that is started in the Application supervision tree.

    This is a potentially breaking change in this seemingly-unlikely scenario: 1) For a given key, there is no value found in the parent/$ancestors hierarchy 2) There is, however, a value found by looking at $callers 3) The desired behavior is that no value be found.

    In this scenario, older releases of ProcessTree will return no value for the key. With this release, ProcessTree will instead return the value found by examining $callers.

    Thanks to @axelson for the feature idea and implementation suggestions.

  • Fix: broken typespec leading to potential dialyzer errors. Thanks to @RobinBoers for spotting and fixing the problem.