Skip to content

Commit

Permalink
Fix Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport committed Jan 6, 2021
1 parent 1428b99 commit 30bb2e3
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ trait CircuitBreaker[F[_]] {
}

object CircuitBreaker {
/** Builder for a [[CircuitBreaker]] reference.
/**
* Builder for a [[CircuitBreaker]] reference.
*
* Effect returned by this operation produces a new
* [[CircuitBreaker]] each time it is evaluated. To share a state between
Expand All @@ -248,7 +249,8 @@ object CircuitBreaker {
of(maxFailures, resetTimeout, exponentialBackoffFactor, maxResetTimeout, F.unit, F. unit, F.unit, F.unit)
}

/** Builder for a [[CircuitBreaker]] reference.
/**
* Builder for a [[CircuitBreaker]] reference.
*
* Effect returned by this operation produces a new
* [[CircuitBreaker]] each time it is evaluated. To share a state between
Expand All @@ -274,7 +276,8 @@ object CircuitBreaker {
in[F, G](maxFailures, resetTimeout, exponentialBackoffFactor, maxResetTimeout, G.unit, G.unit, G.unit, G.unit)
}

/** Builder for a [[CircuitBreaker]] reference.
/**
* Builder for a [[CircuitBreaker]] reference.
*
* Effect returned by this operation produces a new
* [[CircuitBreaker]] each time it is evaluated. To share a state between
Expand Down Expand Up @@ -316,14 +319,15 @@ object CircuitBreaker {
onOpen = onOpen
)

/** Builder for a [[CircuitBreaker]] reference.
/**
* Builder for a [[CircuitBreaker]] reference.
*
* Effect returned by this operation produces a new
* [[CircuitBreaker]] each time it is evaluated. To share a state between
* multiple consumers, pass [[CircuitBreaker]] as a parameter
*
* This method returns a circuit breaker inside of a different effect from
* its own. For a simpler version, see [[of]].
* its own. For a simpler version, see CircuitBreaker.of.
*
* @param maxFailures is the maximum count for failures before
* opening the circuit breaker
Expand Down Expand Up @@ -370,7 +374,6 @@ object CircuitBreaker {
* Ideally this will be in some valid state for the state machine and that
* maxFailures/resetTimeout/exponentialBackoffFactor/maxResetTimeout will all be
* consistent across users or else you may wait based on incorrect information.
*
*/
def unsafe[G[_]: Sync: Clock](
ref: Ref[G, State],
Expand Down

0 comments on commit 30bb2e3

Please sign in to comment.