Is it safe to execute a listener using MoreExecutors.directExecutor(), as in
ListenableFuture res = myFutureStub.myMethod(myRequest);
res.addListener(myCallback, MoreExecutors.directExecutor());
or may I run into problems using this pattern (as I'll be using gRPC's
default executor's threads)? M
On Tue, Jun 14, 2016 at 5:48 AM, wrote:
> Is it safe to execute a listener using MoreExecutors.directExecutor(), as
> in
>
> ListenableFuture res = myFutureStub.myMethod(myRequest);
> res.addListener(myCallback, MoreExecutors.directExecutor());
>
We actually support it channel-wide with
ManagedC