/** * part of Hachette * Facilitate listening to events * * Copyright (C) 2021 Wojtek Kosior * Redistribution terms are gathered in the `copyright' file. */ function make() { return new Set(); } function subscribe(observable, cb) { observable.add(cb); } function unsubscribe(observable, cb) { observable.delete(cb); } function broadcast(observable, event) { for (const callback of observable) callback(event); } const observables = {make, subscribe, unsubscribe, broadcast}; /* * EXPORTS_START * EXPORT observables * EXPORTS_END */ form'>
Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/nix/libutil
AgeCommit message (Expand)Author
2018-12-16daemon: Use unbranded phrases in comments and messages....Ludovic Courtès
2018-10-02daemon: Remove "case hack" for nars....Ludovic Courtès
2017-08-18nix: Remove unused function....Andy Wingo
2016-05-31daemon: Remove unused XML output code....Ludovic Courtès
2015-12-02daemon: Fix namespace issue.Eelco Dolstra
2015-12-02daemon: Support SHA-512 hashes....Eelco Dolstra
2015-12-02daemon: int2String -> std::to_string.Eelco Dolstra
2015-07-03Merge branch 'nix'....Ludovic Courtès
2015-06-03Merge branch 'nix'....Ludovic Courtès
2015-05-19Merge branch 'nix'....Ludovic Courtès
2015-05-19Revert "daemon: Fix possible use-after-free."...Ludovic Courtès
2015-05-11daemon: Fix possible use-after-free....Ludovic Courtès