Semantic Monitors: a proposal

Viktor Söderqvist viktor@REDACTED
Wed Feb 17 10:34:46 CET 2021


On 2021-02-17 08:07, Lukas Larsson wrote:
> You are in luck!
> PR-2735[1] aka EEP-53[2] adds erlang:monitor/3[3] which can be used to 
> do what you want. It will be released in Erlang/OTP 24.
> [1]: 
> [2]: 
> [3]: 

Nice! But Michael's use case would require an extra monitor option.

On 2/16/21 1:14 PM, Michael Truog wrote:
 > If it was possible to provide the data as a string, like
 > "erlang:monotonic_time()" to get evaluated when the DOWN message
 > is created, that would make me happy though it may seem like an
 > odd approach that adds extra latency (it could be a separate option).

For example {tag_fun, fun() -> {'DOWN', erlang:monotonic_time()} end} or 
so, to create the tag at the time of demotinor time. I suppose there 
will still be a short time between the death of the process and the 
creation of the tag though.


More information about the erlang-questions mailing list