Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 467 for ctx_ (0.06 seconds)

  1. internal/grid/debug.go

    	}
    	dialer := &net.Dialer{
    		Timeout: 5 * time.Second,
    	}
    	var res TestGrid
    	res.Hosts = hosts
    	ready := make(chan struct{})
    	ctx, cancel := context.WithCancel(context.Background())
    	res.cancel = cancel
    	for i, host := range hosts {
    		manager, err := NewManager(ctx, ManagerOptions{
    			Dialer: ConnectWS(dialer.DialContext,
    				dummyNewToken,
    				nil),
    			Local:        host,
    			Hosts:        hosts,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. tensorflow/c/c_op_requires.h

    #define C_OPKERNELCONTEXT_REQUIRES_OK(CTX, C_STATUS, __VA_ARGS__) \
      do {                                                            \
        ::tensorflow::Status _s(__VA_ARGS__);                         \
        if (!TF_PREDICT_TRUE(_s.ok())) {                              \
          ::tensorflow::Set_TF_Status_from_Status(C_STATUS, _s);      \
          TF_OpKernelContext_Failure(CTX, C_STATUS);                  \
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Tue Aug 02 21:35:06 GMT 2022
    - 2.3K bytes
    - Click Count (0)
  3. tensorflow/c/eager/c_api_unified_experimental.cc

      return wrap(CreateTracingExecutionContext(fn_name, s));
    }
    
    TF_AbstractFunction* TF_FinalizeFunction(TF_ExecutionContext* ctx,
                                             TF_OutputList* outputs, TF_Status* s) {
      AbstractFunction* func;
      TracingContext* tracing_ctx = dyn_cast<TracingContext>(unwrap(ctx));
      if (!tracing_ctx) {
        tsl::Set_TF_Status_from_Status(
            s, tensorflow::errors::InvalidArgument(
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 9K bytes
    - Click Count (0)
  4. generics_withresult_test.go

    		t.Fatalf("open db failed: %v", err)
    	}
    	if err := db.AutoMigrate(&withResultUser{}); err != nil {
    		t.Fatalf("migrate failed: %v", err)
    	}
    
    	ctx := context.Background()
    
    	u := withResultUser{Name: "with-result-ok"}
    	r := gorm.WithResult()
    	if err := gorm.G[withResultUser](db, r).Create(ctx, &u); err != nil {
    		t.Fatalf("create failed: %v", err)
    	}
    	if u.ID == 0 {
    		t.Fatalf("expected ID to be set")
    	}
    	if r.Error != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                throws MalformedURLException, DcerpcException {
            return DcerpcHandle.getHandle(String.format("ncacn_np:%s[endpoint=%s,address=%s]", loc.getServer(), ep, address.getHostAddress()),
                    ctx);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  6. cmd/grid.go

    var globalLockGridStart = make(chan struct{})
    
    func initGlobalGrid(ctx context.Context, eps EndpointServerPools) error {
    	hosts, local := eps.GridHosts()
    	lookupHost := globalDNSCache.LookupHost
    	g, err := grid.NewManager(ctx, grid.ManagerOptions{
    		// Pass Dialer for websocket grid, make sure we do not
    		// provide any DriveOPTimeout() function, as that is not
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 16 14:27:42 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  7. cmd/prepare-storage.go

    		reqInfo := (&logger.ReqInfo{}).AppendTags("endpoint", endpoint.String())
    		ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    		mutex.Lock()
    		defer mutex.Unlock()
    
    		m, ok := printOnce[endpoint]
    		if !ok {
    			m = make(map[string]int)
    			printOnce[endpoint] = m
    			if once {
    				m[err.Error()]++
    				peersLogAlwaysIf(ctx, err)
    				return
    			}
    		}
    		// Once is set and we are here means error was already
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jul 12 20:51:54 GMT 2024
    - 11.1K bytes
    - Click Count (1)
  8. cmd/metrics-v3-cluster-config.go

    )
    
    // loadClusterConfigMetrics - `MetricsLoaderFn` for cluster config
    // such as standard and RRS parity.
    func loadClusterConfigMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	clusterDriveMetrics, err := c.clusterDriveMetrics.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		m.Set(configStandardParity, float64(clusterDriveMetrics.storageInfo.Backend.StandardSCParity))
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 24 12:50:46 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  9. internal/event/target/webhook.go

    		return store.ErrNotConnected
    	}
    
    	return nil
    }
    
    // NewWebhookTarget - creates new Webhook target.
    func NewWebhookTarget(ctx context.Context, id string, args WebhookArgs, loggerOnce logger.LogOnce, transport *http.Transport) (*WebhookTarget, error) {
    	ctx, cancel := context.WithCancel(ctx)
    
    	var queueStore store.Store[event.Event]
    	if args.QueueDir != "" {
    		queueDir := filepath.Join(args.QueueDir, storePrefix+"-webhook-"+id)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Sep 06 23:06:30 GMT 2024
    - 8.8K bytes
    - Click Count (0)
  10. internal/ioutil/ioutil.go

    // the zero value and the context error is returned.
    func WithDeadline[V any](ctx context.Context, timeout time.Duration, work func(ctx context.Context) (result V, err error)) (result V, err error) {
    	ctx, cancel := context.WithTimeout(ctx, timeout)
    	defer cancel()
    
    	c := make(chan ioret[V], 1)
    	go func() {
    		v, err := work(ctx)
    		c <- ioret[V]{val: v, err: err}
    	}()
    
    	select {
    	case v := <-c:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top