Merge branch 'tor-gitlab/mr/583' into maint-0.4.7
[tor.git] / src / lib / pubsub / lib_pubsub.md
blob3f4c473436d18dedb6f48ea30593e7d34b46d1cb
1 @dir /lib/pubsub
2 @brief lib/pubsub: Publish-subscribe message passing.
4 This module wraps the \refdir{lib/dispatch} module, to provide a more
5 ergonomic and type-safe approach to message passing.
7 In general, we favor this mechanism for cases where higher-level modules
8 need to be notified when something happens in lower-level modules. (The
9 alternative would be calling up from the lower-level modules, which
10 would be error-prone; or maintaining lists of function-pointers, which
11 would be clumsy and tend to complicate the call graph.)
13 See pubsub.c for more information.