You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get identical behavior to the deprecated method, pass guava's com.google.common.util.concurrent.MoreExecutors.directExecutor() as the last parameter, but please do not do it unless you really know what you are doing. It is better to use separate thread executor, because using direct executor will execute the callback under future's internal locks and may break its behavior if the callback is not properly implemented.
What should people use to add an asynchronous callback on the Api Futures instead now since it's deprecated?
google-cloud-java/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java
Line 103 in 9cc799f
The text was updated successfully, but these errors were encountered: