Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for unwrapping (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    	*out = *t
    }
    
    // NewTime returns a wrapped instance of the provided time
    func NewTime(time time.Time) Time {
    	return Time{time}
    }
    
    // Date returns the Time corresponding to the supplied parameters
    // by wrapping time.Date.
    func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time {
    	return Time{time.Date(year, month, day, hour, min, sec, nsec, loc)}
    }
    
    // Now returns the current local time.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go

    // NewMicroTime returns a wrapped instance of the provided time
    func NewMicroTime(time time.Time) MicroTime {
    	return MicroTime{time}
    }
    
    // DateMicro returns the MicroTime corresponding to the supplied parameters
    // by wrapping time.Date.
    func DateMicro(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) MicroTime {
    	return MicroTime{time.Date(year, month, day, hour, min, sec, nsec, loc)}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. internal/deadlineconn/deadlineconn.go

    }
    
    // WithWriteDeadline sets a new write side net.Conn deadline.
    func (c *DeadlineConn) WithWriteDeadline(d time.Duration) *DeadlineConn {
    	c.writeDeadline = d
    	return c
    }
    
    // New - creates a new connection object wrapping net.Conn with deadlines.
    func New(c net.Conn) *DeadlineConn {
    	return &DeadlineConn{
    		Conn: c,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/io/ioutil/ioutil.go

    		return nil, err
    	}
    	slices.SortFunc(list, func(a, b os.FileInfo) int {
    		return strings.Compare(a.Name(), b.Name())
    	})
    	return list, nil
    }
    
    // NopCloser returns a ReadCloser with a no-op Close method wrapping
    // the provided Reader r.
    //
    // Deprecated: As of Go 1.16, this function simply calls [io.NopCloser].
    func NopCloser(r io.Reader) io.ReadCloser {
    	return io.NopCloser(r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/net/http/transport_internal_test.go

    package http
    
    import (
    	"bytes"
    	"context"
    	"crypto/tls"
    	"errors"
    	"io"
    	"net"
    	"net/http/internal/testcert"
    	"strings"
    	"testing"
    )
    
    // Issue 15446: incorrect wrapping of errors when server closes an idle connection.
    func TestTransportPersistConnReadLoopEOF(t *testing.T) {
    	ln := newLocalListener(t)
    	defer ln.Close()
    
    	connc := make(chan net.Conn, 1)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/abi.go

    	pos := base.AutogeneratedPos
    	base.Pos = pos
    
    	// At the moment we don't support wrapping a method, we'd need machinery
    	// below to handle the receiver. Panic if we see this scenario.
    	ft := f.Nname.Type()
    	if ft.NumRecvs() != 0 {
    		base.ErrorfAt(f.Pos(), 0, "makeABIWrapper support for wrapping methods not implemented")
    		return
    	}
    
    	// Reuse f's types.Sym to create a new ODCLFUNC/function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

                        + "a org.eclipse.sisu.Typed or javax.enterprise.inject.Typed annotation");
            }
        }
    
        /**
         * A provider wrapping an existing provider with a cache
         * @param <T> the provided type
         */
        protected static class CachingProvider<T> implements Provider<T> {
            private final Provider<T> provider;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/os/file.go

    var (
    	Stdin  = NewFile(uintptr(syscall.Stdin), "/dev/stdin")
    	Stdout = NewFile(uintptr(syscall.Stdout), "/dev/stdout")
    	Stderr = NewFile(uintptr(syscall.Stderr), "/dev/stderr")
    )
    
    // Flags to OpenFile wrapping those of the underlying system. Not all
    // flags may be implemented on a given system.
    const (
    	// Exactly one of O_RDONLY, O_WRONLY, or O_RDWR must be specified.
    	O_RDONLY int = syscall.O_RDONLY // open the file read-only.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc

              }).wasInterrupted()) {
          ops_with_side_effects.push_back(&op);
        }
      }
    
      OpBuilder builder(fn.getContext());
      // The control tokens generated by the last ControlNodeOp wrapping.  Will be
      // empty until the first ControlNodeOp was generated, then have constant size
      // 1.
      llvm::SmallVector<Value, 1> control_tokens;
      for (auto *op : ops_with_side_effects) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. cmd/api-router.go

    			tracedHandler = httpTraceHdrs(f)
    		} else {
    			tracedHandler = httpTraceAll(f)
    		}
    
    		// Skip wrapping with the gzip middleware if specified.
    		var gzippedHandler http.HandlerFunc = tracedHandler
    		if !handlerFlags.has(noGZS3HFlag) {
    			gzippedHandler = gzipHandler(gzippedHandler)
    		}
    
    		// Skip wrapping with throttling middleware if specified.
    		var throttledHandler http.HandlerFunc = gzippedHandler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top