Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 159 for Callables (0.24 seconds)

  1. docs/tr/docs/advanced/advanced-dependencies.md

    Ama bu sabit içeriği parametreleştirebilmek istiyoruz.
    
    ## "Callable" bir instance { #a-callable-instance }
    
    Python'da bir class'ın instance'ını "callable" yapmanın bir yolu vardır.
    
    Class'ın kendisini değil (zaten callable'dır), o class'ın bir instance'ını.
    
    Bunu yapmak için `__call__` adında bir method tanımlarız:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        return doMultithreadedLoop(
            new Callable<Long>() {
              @Override
              public Long call() {
                return runAddSingleThread(reps);
              }
            });
      }
    
      @Benchmark
      long addRemove(int reps) throws ExecutionException, InterruptedException {
        return doMultithreadedLoop(
            new Callable<Long>() {
              @Override
              public Long call() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/AsyncCallable.java

     * Computes a value, possibly asynchronously. For an example usage and more information, see {@link
     * Futures.FutureCombiner#callAsync(AsyncCallable, java.util.concurrent.Executor)}.
     *
     * <p>Much like {@link java.util.concurrent.Callable}, but returning a {@link ListenableFuture}
     * result.
     *
     * @since 20.0
     */
    @GwtCompatible
    public interface AsyncCallable<V extends @Nullable Object> {
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/advanced-dependencies.md

    これまで見てきた依存関係は、固定の関数またはクラスでした。
    
    しかし、多くの異なる関数やクラスを宣言せずに、その依存関係にパラメータを設定したい場合があります。
    
    たとえば、クエリパラメータ `q` に、ある固定の内容が含まれているかを検査する依存関係が欲しいとします。
    
    ただし、その固定の内容はパラメータ化できるようにしたいです。
    
    ## "callable" なインスタンス { #a-callable-instance }
    
    Python には、クラスのインスタンスを "callable" にする方法があります。
    
    クラス自体(これはすでに callable です)ではなく、そのクラスのインスタンスです。
    
    そのためには、`__call__` メソッドを宣言します:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[12] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  5. docs/en/docs/reference/dependencies.md

    # Dependencies - `Depends()` and `Security()`
    
    ## `Depends()`
    
    Dependencies are handled mainly with the special function `Depends()` that takes a callable.
    
    Here is the reference for it and its parameters.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Depends
    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 671 bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPlugin.java

    import java.io.File;
    import java.io.IOException;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.util.Arrays;
    import java.util.List;
    import java.util.Map;
    import java.util.concurrent.Callable;
    import java.util.stream.Collectors;
    import org.elasticsearch.gradle.internal.conventions.GUtils;
    
    public class InternalDistributionArchiveCheckPlugin implements InternalPlugin {
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker = new FakeTicker();
      }
    
      @Test
      public void loader() throws ExecutionException {
        Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        Callable<Integer> loader =
            new Callable<Integer>() {
              private int i = 0;
    
              @Override
              public Integer call() throws Exception {
                return ++i;
              }
            };
    
        cache.put(0, 10);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  8. fastapi/datastructures.py

    from collections.abc import Callable, Mapping
    from typing import (
        Annotated,
        Any,
        BinaryIO,
        TypeVar,
        cast,
    )
    
    from annotated_doc import Doc
    from pydantic import GetJsonSchemaHandler
    from starlette.datastructures import URL as URL  # noqa: F401
    from starlette.datastructures import Address as Address  # noqa: F401
    from starlette.datastructures import FormData as FormData  # noqa: F401
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  9. architecture/standards/0003-avoid-introducing-Groovy-types-to-public-api.md

    Existing Groovy methods will not be removed immediately.
    
    ## Consequences
    
    * If we would have used `Closure`, we must instead use `Action<T>`, `Spec<T>`, `Callable<T>`, or `Transformer<OUT, IN>`.
    * We need to ensure all APIs that are exposed in the Groovy DSL go through runtime decoration.
    Runtime decoration mixes in methods that use Groovy Closures to maintain consistent behavior in Groovy DSL.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  10. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/PublishPlugin.java

    import org.gradle.initialization.layout.BuildLayout;
    import org.gradle.language.base.plugins.LifecycleBasePlugin;
    
    import javax.inject.Inject;
    import java.io.File;
    import java.util.Map;
    import java.util.concurrent.Callable;
    
    public class PublishPlugin implements Plugin<Project> {
    
        private ProjectLayout projectLayout;
        private BuildLayout buildLayout;
        private ProviderFactory providerFactory;
    
        @Inject
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Aug 11 07:30:51 GMT 2021
    - 8.9K bytes
    - Click Count (0)
Back to Top