forked from uwiger/gproc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change return value of update_counters/1; add gproc_ps:notify_single_…
…if_true update_counters(Cs) now returns [{Ctr,Pid,NewValue}] instead of just [NewValue] gproc_ps:notify_single_if_true(Scope,Event,Test,Msg) enables/creates a single-shot subscription and immediately executes a tell_singles(Scope,Event,Msg) for that subscriber only if Test() -> true. Otherwise, the subscription will stay active until a message is published for Event 'the normal way'.
- Loading branch information
Showing
6 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters