| CircuitBreakerWithSyncCircuitBreakerT Method (FuncT) |
Wraps invocations of asynchronous calls that need to be protected
If this does not complete within the time allotted, it should return default(
T)
Await.result(
withCircuitBreaker(try Future.successful(body) catch { case NonFatal(t) ⇒ Future.failed(t) }),
callTimeout)
Namespace:
Akka.Pattern
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public T WithSyncCircuitBreaker<T>(
Func<T> body
)
member WithSyncCircuitBreaker :
body : Func<'T> -> 'T
Parameters
- body
- Type: SystemFuncT
TBD
Type Parameters
- T
- TBD
Return Value
Type:
TT or default(
T)
See Also