count method

int count(
  1. String topic
)

Get the number of subscriptions for a topic in the event system.

Implementation

int count(String topic) {
  return _cache[topic]?.length ?? 0;
}