Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,059 for Callable (1.02 sec)

  1. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java

     * under the License.
     */
    package org.apache.maven.lifecycle.internal.stub;
    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.concurrent.Callable;
    import java.util.concurrent.CompletionService;
    import java.util.concurrent.Future;
    import java.util.concurrent.FutureTask;
    import java.util.concurrent.TimeUnit;
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Eine Python-Klasse ist also auch ein **Callable**.
    
    Darum können Sie in **FastAPI** auch eine Python-Klasse als Abhängigkeit verwenden.
    
    Was FastAPI tatsächlich prüft, ist, ob es sich um ein „Callable“ (Funktion, Klasse oder irgendetwas anderes) handelt und ob die Parameter definiert sind.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. fastapi/types.py

    import types
    from enum import Enum
    from typing import Any, Callable, Dict, Set, Type, TypeVar, Union
    
    from pydantic import BaseModel
    
    DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
    UnionType = getattr(types, "UnionType", Union)
    ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str]
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Dec 12 00:29:03 GMT 2023
    - 383 bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * @param <U> the type returned by the function
         */
        public interface ClosingFunction5<
            V1 extends @Nullable Object,
            V2 extends @Nullable Object,
            V3 extends @Nullable Object,
            V4 extends @Nullable Object,
            V5 extends @Nullable Object,
            U extends @Nullable Object> {
          /**
           * Applies this function to five inputs, or throws an exception if unable to do so.
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  5. docs_src/custom_request_and_route/tutorial001.py

    import gzip
    from typing import Callable, List
    
    from fastapi import Body, FastAPI, Request, Response
    from fastapi.routing import APIRoute
    
    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 973 bytes
    - Viewed (0)
  6. fastapi/dependencies/models.py

    from typing import Any, Callable, List, Optional, Sequence
    
    from fastapi._compat import ModelField
    from fastapi.security.base import SecurityBase
    
    
    class SecurityRequirement:
        def __init__(
            self, security_scheme: SecurityBase, scopes: Optional[Sequence[str]] = None
        ):
            self.security_scheme = security_scheme
            self.scopes = scopes
    
    
    class Dependant:
        def __init__(
            self,
            *,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        assertFile(Relay.PREFIX_CLEAN, 20L, metadata.size, "abcdefghijklmnopqrst", metadata)
      }
    
      /** Returns a callable that reads all of source, closes it, and returns the bytes.  */
      private fun sourceReader(source: Source?): Callable<ByteString> {
        return Callable {
          val buffer = Buffer()
          while (source!!.read(buffer, 16384) != -1L) {
          }
          source.close()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java

      protected abstract ListeningExecutorService delegate();
    
      @Override
      public <T extends @Nullable Object> ListenableFuture<T> submit(Callable<T> task) {
        return delegate().submit(task);
      }
    
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        return delegate().submit(task);
      }
    
      @Override
      public <T extends @Nullable Object> ListenableFuture<T> submit(
          Runnable task, @ParametricNullness T result) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

          return true;
        }
    
        @Override
        public void execute(Runnable runnable) {}
    
        @Override
        public <V> ListenableScheduledFuture<V> schedule(
            Callable<V> callable, long delay, TimeUnit unit) {
          return NeverScheduledFuture.create();
        }
    
        @Override
        public ListenableScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/advanced-dependencies.md

    But we want to be able to parameterize that fixed content.
    
    ## A "callable" instance
    
    In Python there's a way to make an instance of a class a "callable".
    
    Not the class itself (which is already a callable), but an instance of that class.
    
    To do that, we declare a method `__call__`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top