Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 382 for canceler (0.13 sec)

  1. cmd/erasure-server-pool-decom_gen.go

    				return
    			}
    		case "fl":
    			z.Failed, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "Failed")
    				return
    			}
    		case "cnl":
    			z.Canceled, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "Canceled")
    				return
    			}
    		case "bkts":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "QueuedBuckets")
    				return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 04 21:02:54 UTC 2022
    - 26.7K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/testdata/describe/tls_config.json

                          "timeout": "0s",
                          "retry_policy": {
                            "retry_on": "connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes",
                            "num_retries": 2,
                            "retry_host_predicate": [
                              {
                                "name": "envoy.retry_host_predicates.previous_hosts"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. internal/ringbuffer/ring_buffer.go

    		r.readCond = sync.NewCond(&r.mu)
    		r.writeCond = sync.NewCond(&r.mu)
    	}
    	return r
    }
    
    // WithCancel sets a context to cancel the ring buffer.
    // When the context is canceled, the ring buffer will be closed with the context error.
    // A goroutine will be started and run until the provided context is canceled.
    func (r *RingBuffer) WithCancel(ctx context.Context) *RingBuffer {
    	go func() {
    		select {
    		case <-ctx.Done():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/InterruptibleTask.java

      private static final int MAX_BUSY_WAIT_SPINS = 1000;
    
      @Override
      public final void run() {
        /*
         * Set runner thread before checking isDone(). If we were to check isDone() first, the task
         * might be cancelled before we set the runner thread. That would make it impossible to
         * interrupt, yet it will still run, since interruptTask will leave the runner value null,
         * allowing the CAS below to succeed.
         */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. doc/next/6-stdlib/99-minor/testing/36532.md

    The new [T.Context] and [B.Context] methods return a context that's canceled
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 20 17:36:54 UTC 2024
    - 141 bytes
    - Viewed (0)
  6. internal/handlers/forwarder.go

    }
    
    // customErrHandler is originally implemented to avoid having the following error
    //
    //	`http: proxy error: context canceled` printed by Golang
    func (f *Forwarder) customErrHandler(w http.ResponseWriter, r *http.Request, err error) {
    	if f.Logger != nil && err != context.Canceled {
    		f.Logger(err)
    	}
    	w.WriteHeader(http.StatusBadGateway)
    }
    
    func (f *Forwarder) getURLFromRequest(req *http.Request) *url.URL {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/InterceptorTest.kt

      fun networkInterceptorThrowsRuntimeExceptionAsynchronous() {
        interceptorThrowsRuntimeExceptionAsynchronous(true)
      }
    
      /**
       * When an interceptor throws an unexpected exception, asynchronous calls are canceled. The
       * exception goes to the uncaught exception handler.
       */
      private fun interceptorThrowsRuntimeExceptionAsynchronous(network: Boolean) {
        val boom = RuntimeException("boom!")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/StreamResetException.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.IOException
    
    /** Thrown when an HTTP/2 stream is canceled without damage to the socket that carries it. */
    class StreamResetException(
      @JvmField val errorCode: ErrorCode,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 869 bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

          printEvent("callEnd");
        }
    
        @Override public void callFailed(Call call, IOException ioe) {
          printEvent("callFailed");
        }
    
        @Override public void canceled(Call call) {
          printEvent("canceled");
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

      internal var activeTask: Task? = null
    
      /** Scheduled tasks ordered by [Task.nextExecuteNanoTime]. */
      internal val futureTasks = mutableListOf<Task>()
    
      /** True if the [activeTask] should be canceled when it completes. */
      internal var cancelActiveTask = false
    
      /**
       * Returns a snapshot of tasks currently scheduled for execution. Does not include the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top