[erlang-questions] Question about gproc and "wildcards"

Gregory Haskins gregory.haskins@REDACTED
Thu Apr 28 22:05:23 CEST 2011


Greetings Ulf, all,

Question about gproc.  I am using gproc in a variety of ways, one of
which is as a pub/sub mechanism as advertised in the readme.md (see:
https://github.com/ghaskins/edist/blob/master/lib/src/main/erlang/edist_event_bus.erl
as an example).

What I am wondering is, is there a way to "subscribe" to something with
wildcards?

For instance, can I say "subscribe({interesting_event, '_'})" such that
I would get notifications for

notify({interesting_event, foo})

as well as

notify({interesting_event, bar})

I am a bit unclear if or how this could be done.

Thanks!
-Greg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110428/47651ea8/attachment.bin>


More information about the erlang-questions mailing list