Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for closeFn (0.32 sec)

  1. pkg/scheduler/framework/runtime/framework_test.go

    }
    
    // TestCloseErrorPlugin implements for Close test.
    type TestCloseErrorPlugin struct {
    	name string
    }
    
    func (pl *TestCloseErrorPlugin) Name() string {
    	return pl.name
    }
    
    var errClose = errors.New("close err")
    
    func (pl *TestCloseErrorPlugin) Close() error {
    	return errClose
    }
    
    // TestPreFilterPlugin only implements PreFilterPlugin interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    		io.Copy(io.Discard, r.Body)
    	})).ts
    
    	c := ts.Client()
    
    	closes := 0
    
    	res, err := c.Post(ts.URL, "text/plain", countCloseReader{&closes, strings.NewReader("hello")})
    	if err != nil {
    		t.Fatal(err)
    	}
    	res.Body.Close()
    	if closes != 1 {
    		t.Errorf("closes = %d; want 1", closes)
    	}
    }
    
    func TestTransportTLSHandshakeTimeout(t *testing.T) {
    	defer afterTest(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  3. fastapi/applications.py

                    """
                ),
                deprecated(
                    """
                    "openapi_prefix" has been deprecated in favor of "root_path", which
                    follows more closely the ASGI standard, is simpler, and more
                    automatic.
                    """
                ),
            ] = "",
            root_path: Annotated[
                str,
                Doc(
                    """
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  4. pkg/scheduler/schedule_one_test.go

    				return
    			}
    			if pods == 0 {
    				close(waitPodExpireChan)
    				return
    			}
    			time.Sleep(100 * time.Millisecond)
    		}
    	}()
    	// waiting for the assumed pod to expire
    	select {
    	case err := <-errChan:
    		t.Fatal(err)
    	case <-waitPodExpireChan:
    	case <-time.After(wait.ForeverTestTimeout):
    		close(timeout)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
              range.upperBoundType() == BoundType.CLOSED);
        } else if (range.hasLowerBound()) {
          return map.tailMap(range.lowerEndpoint(), range.lowerBoundType() == BoundType.CLOSED);
        } else if (range.hasUpperBound()) {
          return map.headMap(range.upperEndpoint(), range.upperBoundType() == BoundType.CLOSED);
        }
        return checkNotNull(map);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
              range.upperBoundType() == BoundType.CLOSED);
        } else if (range.hasLowerBound()) {
          return map.tailMap(range.lowerEndpoint(), range.lowerBoundType() == BoundType.CLOSED);
        } else if (range.hasUpperBound()) {
          return map.headMap(range.upperEndpoint(), range.upperBoundType() == BoundType.CLOSED);
        }
        return checkNotNull(map);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	go func() {
    		defer wg.Done()
    		pod, err := q.Pop(logger)
    		if err != nil {
    			t.Errorf("Expected nil err from Pop() if queue is closed, but got %q", err.Error())
    		}
    		if pod != nil {
    			t.Errorf("Expected pod nil from Pop() if queue is closed, but got: %v", pod)
    		}
    	}()
    	q.Close()
    	wg.Wait()
    }
    
    // TestRecentlyTriedPodsGoBack tests that pods which are recently tried and are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet.go

    		// (status was not updated within nodeReadyGracePeriod and the second argument below gets true),
    		// then we close the channel and abort the loop.
    		if kl.fastNodeStatusUpdate(ctx, kl.clock.Since(start) >= nodeReadyGracePeriod) {
    			close(stopCh)
    		}
    	}, 100*time.Millisecond, stopCh)
    }
    
    // CheckpointContainer tries to checkpoint a container. The parameters are used to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  9. tensorflow/c/c_api.cc

      } else {
        DCHECK_EQ(nullptr, session);
        return nullptr;
      }
    }
    
    void TF_CloseDeprecatedSession(TF_DeprecatedSession* s, TF_Status* status) {
      status->status = s->session->Close();
    }
    
    void TF_DeleteDeprecatedSession(TF_DeprecatedSession* s, TF_Status* status) {
      status->status = absl::OkStatus();
      if (s == nullptr) return;
      delete s->session;
      delete s;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/x86/asm6.go

    )
    
    const (
    	// Encoding for VEX prefix in tables.
    	// The P, L, and W fields are chosen to match
    	// their eventual locations in the VEX prefix bytes.
    
    	// Encoding for VEX prefix in tables.
    	// The P, L, and W fields are chosen to match
    	// their eventual locations in the VEX prefix bytes.
    
    	// Using spare bit to make leading [E]VEX encoding byte different from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top