Click or drag to resize
Akka.NETCircuitBreakerWithSyncCircuitBreakerT 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
)

Parameters

body
Type: SystemFuncT
TBD

Type Parameters

T
TBD

Return Value

Type: T
T or default(T)
See Also