MCPcopy Create free account
hub / github.com/grpc/grpc-java / newThread

Method newThread

benchmarks/src/main/java/io/grpc/benchmarks/Utils.java:165–171  ·  view source on GitHub ↗
(ForkJoinPool pool)

Source from the content-addressed store, hash-verified

163 new ForkJoinWorkerThreadFactory() {
164 final AtomicInteger num = new AtomicInteger();
165 @Override
166 public ForkJoinWorkerThread newThread(ForkJoinPool pool) {
167 ForkJoinWorkerThread thread = defaultForkJoinWorkerThreadFactory.newThread(pool);
168 thread.setDaemon(true);
169 thread.setName("grpc-client-app-" + "-" + num.getAndIncrement());
170 return thread;
171 }
172 }, UncaughtExceptionHandlers.systemExit(), true /* async */);
173 }
174 return clientExecutor;

Callers

nothing calls this directly

Calls 1

setNameMethod · 0.80

Tested by

no test coverage detected