How to use the pubsub-js.clearAllSubscriptions function in pubsub-js

To help you get started, we’ve selected a few pubsub-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla / testpilot / addon / src / bootstrap.js View on Github external
export function shutdown(data, reason) {
  try {
    shutdownWebExtension(data, reason);
    shutdownFrameScripts();
    shutdownChannels();
    shutdownEvents();
    shutdownPrefsObserver();
    shutdownAddonManager();
    shutdownTelemetry(data, reason);
    PubSub.clearAllSubscriptions();
  } catch (err) {
    log("shutdown error", err);
  }
}
github Azure / pcs-remote-monitoring-webui / src / common / eventtopic.js View on Github external
var clearAllSubscriptions = function () {
    PubSub.clearAllSubscriptions();
}
github microsoft / clarity-js / karma / setup / pubsub.ts View on Github external
export function unsubscribeAll(): void {
    PubSub.clearAllSubscriptions();
}