From 13616b08b91ad59db36a21b9b674076b78c6a153 Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Wed, 26 Jun 2019 17:55:57 -0400 Subject: [PATCH] feat: provide an Iterator of all active circuits (#344) * feat: provide an Iterator of all active circuits The CircuitBreaker object keeps a Set of instances that have been created. This change makes a Set Iterator of all circuits that have not been shutdown(). Fixes: https://github.com/nodeshift/opossum/issues/340 --- docs/index.html | 153 ++++++++++++- docs/opossum.md | 413 ++++++++++++++++++---------------- index.js | 22 +- lib/circuit.js | 14 ++ test/browser/index.js | 1 - test/circuit-shutdown-test.js | 23 ++ 6 files changed, 419 insertions(+), 207 deletions(-) diff --git a/docs/index.html b/docs/index.html index 7b32d951..558767c4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - opossum 2.1.0 | Documentation + opossum 2.2.0 | Documentation @@ -15,7 +15,7 @@

opossum

-
2.1.0
+
2.2.0
opossum +
  • + factory.circuits + + + +
  • + +
  • @@ -74,6 +84,17 @@

    opossum