Circuit Breaker available in the Unity gRPC environment.
See http://martinfowler.com/bliki/CircuitBreaker.html
- UniTask(https://github.com/Cysharp/UniTask)
How to Use
var ccb = new ChannelCircuitBreaker<FooClient>(channel, failedThreshold: 5, invocationTimeout: 0.2f);
await ccb
.Create(ch => fooClient = new FooClient(ch))
.InvocationTimeout(1f) //Reconfiguring
.Execute();
MIT