binder: SecurityPolicies.allOf() and anyOf() should efficiently interop with AsyncSecurityPolicy
Open
binder
enhancement
- Dominant language
- Java
- Stars
- 12.1k
- Forks
- 4k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 37
Description
### Is your feature request related to a problem?
As it stands, these composite security policies can be used with AsyncSecurityPolicy, but they end up blocking an additional thread on Future.get() [here](https://github.com/grpc/grpc-java/blob/782a44ad62f84d19291b0771b56b431e6e723752/binder/src/main/java/io/grpc/binder/AsyncSecurityPolicy.java#L45).
### Describe the solution you'd like
We could create new allOfAsync() and anyOfAsync() methods or try to update the existing methods to special case AsyncSecurityPolicy..
Contributor guide
Assessment
This issue has not been assessed yet.