Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for decorate (0.09 sec)

  1. common/scripts/tracing.sh

        --attrs "$(_genattrs)"
      if [[ $was_execution_trace == 1 ]]; then
        { set -x; } 2>/dev/null
      fi
      return "$result"
    }
    
    # Usage: tracing::decorate <function>
    # Automatically makes a function traced.
    function tracing::decorate() {
    eval "\
    function $1() {
    _$(typeset -f "$1")
    tracing::run '$1' _$1
    }
    "
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jul 28 15:25:47 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. .idea/inspectionProfiles/Gradle.xml

    annotated with @Provides but uses wrong naming" description="A service-providing method is annotated with `@Provides`, but its name does not start with 'create' or 'decorate', or is not 'configure'" suppressId="annotated_not_service_providing" problemDescriptor="Method is annotated with @Provides, but its name does not start with 'create' or 'decorate'" text="class $Class$ implements $Base$ {&#10;    @$Annotation$&#10;    @Modifier(&quot;Instance&quot;) $ReturnType$ $Method$ ($ParameterType$ $Parameter$);&#10;}"...
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 26 21:49:47 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

      interface Backend {
        fun nanoTime(): Long
    
        fun coordinatorNotify(taskRunner: TaskRunner)
    
        fun coordinatorWait(
          taskRunner: TaskRunner,
          nanos: Long,
        )
    
        fun <T> decorate(queue: BlockingQueue<T>): BlockingQueue<T>
    
        fun execute(
          taskRunner: TaskRunner,
          runnable: Runnable,
        )
      }
    
      class RealBackend(threadFactory: ThreadFactory) : Backend {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. api/maven-api-plugin/src/main/mdo/lifecycle.mdo

              <version>2.0.0+</version>
              <type>String</type>
              <defaultValue><![CDATA[]]></defaultValue>
              <description><![CDATA[If specified, identifies this phase as a dynamic phase to decorate the specified phase id, e.g. {@code after} or {@code before}.]]></description>
            </field>
            <field xml.attribute="true">
              <name>priority</name>
              <required>false</required>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 29 05:48:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

      /**
       * Results are posted here as they occur. The find job is done when either one plan completes
       * successfully or all plans fail.
       */
      private val connectResults = taskRunner.backend.decorate(LinkedBlockingDeque<ConnectResult>())
    
      override fun find(): RealConnection {
        var firstException: IOException? = null
        try {
          while (tcpConnectsInFlight.isNotEmpty() || routePlanner.hasNext()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * right before each task is run. The renaming is best effort, if a {@link SecurityManager}
       * prevents the renaming then it will be skipped but the tasks will still execute.
       *
       * @param executor The executor to decorate
       * @param nameSupplier The source of names for each task
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      static Executor renamingDecorator(final Executor executor, final Supplier<String> nameSupplier) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

              if (waitingCoordinatorInterrupted) {
                waitingCoordinatorInterrupted = false
                throw InterruptedException()
              }
            }
    
            override fun <T> decorate(queue: BlockingQueue<T>) = TaskFakerBlockingQueue(queue)
          },
          logger = logger,
        )
    
      /** Runs all tasks that are ready. Used by the test thread only. */
      fun runTasks() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/handling-errors.md

    And it also includes a default exception handler for it.
    
    To override it, import the `RequestValidationError` and use it with `@app.exception_handler(RequestValidationError)` to decorate the exception handler.
    
    The exception handler will receive a `Request` and the exception.
    
    ```Python hl_lines="2  14-16"
    {!../../docs_src/handling_errors/tutorial004.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

                        .build());
                options.addOption(Option.builder()
                        .longOpt(RAW_STREAMS)
                        .desc("Do not decorate standard output and error streams")
                        .build());
                options.addOption(Option.builder(SHOW_VERSION)
                        .longOpt("show-version")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager" class="external-link" target="_blank">`@contextlib.asynccontextmanager`</a>
    
    using them to decorate a function with a single `yield`.
    
    That's what **FastAPI** uses internally for dependencies with `yield`.
    
    But you don't have to use the decorators for FastAPI dependencies (and you shouldn't).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top