- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 669 for executor (0.08 sec)
-
android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
*/ public <T extends @Nullable Object> ListenableFuture<T> submitAsync( AsyncCallable<T> callable, Executor executor) { checkNotNull(callable); checkNotNull(executor); TaskNonReentrantExecutor taskExecutor = new TaskNonReentrantExecutor(executor, this); AsyncCallable<T> task = new AsyncCallable<T>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/tests/ConcurrencyTest.java
} @Override @Before public void setUp () throws Exception { super.setUp(); this.executor = Executors.newCachedThreadPool(); } @After @Override public void tearDown () throws Exception { this.executor.shutdown(); this.executor.awaitTermination(10, TimeUnit.SECONDS); super.tearDown(); } @Test
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Nov 14 17:40:50 UTC 2021 - 17.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java
} public void testTimeout() throws Exception { // Create a service whose executor will never run its commands Service service = new TestService() { @Override protected Executor executor() { return new Executor() { @Override public void execute(Runnable command) {} }; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 7.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* @param executor the executor in which the listeners callback methods will be run. For fast, * lightweight listeners that would be safe to execute in any thread, consider {@link * MoreExecutors#directExecutor}. * @since 13.0 */ void addListener(Listener listener, Executor executor); /** * The lifecycle states of a service. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 10.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/DirectExecutor.java
import com.google.common.annotations.GwtCompatible; import java.util.concurrent.Executor; /** * An {@link Executor} that runs each task in the thread that invokes {@link Executor#execute * execute}. */ @GwtCompatible @ElementTypesAreNonnullByDefault enum DirectExecutor implements Executor { INSTANCE; @Override public void execute(Runnable command) { command.run(); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 05 22:27:35 UTC 2021 - 1.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/DirectExecutor.java
import com.google.common.annotations.GwtCompatible; import java.util.concurrent.Executor; /** * An {@link Executor} that runs each task in the thread that invokes {@link Executor#execute * execute}. */ @GwtCompatible @ElementTypesAreNonnullByDefault enum DirectExecutor implements Executor { INSTANCE; @Override public void execute(Runnable command) { command.run(); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 05 22:27:35 UTC 2021 - 1.1K bytes - Viewed (0) -
guava/src/com/google/common/eventbus/Subscriber.java
private final Method method; /** Executor to use for dispatching events to this subscriber. */ private final Executor executor; private Subscriber(EventBus bus, Object target, Method method) { this.bus = bus; this.target = checkNotNull(target); this.method = method; method.setAccessible(true); this.executor = bus.executor(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoaderTest.java
import java.util.Map; import java.util.concurrent.Executor; import java.util.concurrent.Future; import java.util.concurrent.atomic.AtomicInteger; import junit.framework.TestCase; /** * Unit tests for {@link CacheLoader}. * * @author Charles Fry */ public class CacheLoaderTest extends TestCase { private static class QueuingExecutor implements Executor {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/WatchTest.java
@Before public void setUp () throws Exception { super.setUp(); this.executor = Executors.newSingleThreadExecutor(); this.base = createTestDirectory(); } @Override @After public void tearDown () throws Exception { if ( this.executor != null ) { this.executor.shutdown(); if ( this.future != null ) { this.future.cancel(true);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
if (state.iterations() >= state.max_iterations && async) { TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx); TFE_ExecutorWaitForAllPendingNodes(executor, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteExecutor(executor); } } TFE_DeleteOp(matmul); TFE_DeleteTensorHandle(m); TFE_DeleteContext(ctx);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0)