Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Deferred (0.21 sec)

  1. doc/go1.17_spec.html

    and saved anew but the actual function is not invoked.
    Instead, deferred functions are invoked immediately before
    the surrounding function returns, in the reverse order
    they were deferred. That is, if the surrounding function
    returns through an explicit <a href="#Return_statements">return statement</a>,
    deferred functions are executed <i>after</i> any result parameters are set
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/ast.go

    	sel, ok := call.Fun.(*ast.SelectorExpr)
    	if !ok {
    		return
    	}
    	if l, ok := sel.X.(*ast.Ident); !ok || l.Name != "C" {
    		return
    	}
    	c := &Call{Call: call, Deferred: context == ctxDefer}
    	f.Calls = append(f.Calls, c)
    }
    
    // If a function should be exported add it to ExpFunc.
    func (f *File) saveExport(x interface{}, context astContext) {
    	n, ok := x.(*ast.FuncDecl)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. src/builtin/builtin.go

    // goroutine. When a function F calls panic, normal execution of F stops
    // immediately. Any functions whose execution was deferred by F are run in
    // the usual way, and then F returns to its caller. To the caller G, the
    // invocation of F then behaves like a call to panic, terminating G's
    // execution and running any deferred functions. This continues until all
    // functions in the executing goroutine have stopped, in reverse order. At
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    the C parts of the package. For example:
    
    	// #include <stdio.h>
    	// #include <errno.h>
    	import "C"
    
    The preamble may contain any C code, including function and variable
    declarations and definitions. These may then be referred to from Go
    code as though they were defined in the package "C". All names
    declared in the preamble may be used, even if they start with a
    lower-case letter. Exception: static variables in the preamble may
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. doc/go_spec.html

    and saved anew but the actual function is not invoked.
    Instead, deferred functions are invoked immediately before
    the surrounding function returns, in the reverse order
    they were deferred. That is, if the surrounding function
    returns through an explicit <a href="#Return_statements">return statement</a>,
    deferred functions are executed <i>after</i> any result parameters are set
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    	// function literal in order to get the function to call.
    
    	var sb bytes.Buffer
    	sb.WriteString("func() ")
    	if call.Deferred {
    		sb.WriteString("func() ")
    	}
    
    	needsUnsafe := false
    	result := false
    	twoResults := false
    	if !call.Deferred {
    		// Check whether this call expects two results.
    		for _, ref := range f.Ref {
    			if ref.Expr != &call.Call.Fun {
    				continue
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. doc/next/6-stdlib/1-time.md

    ### Timer changes
    
    Go 1.23 makes two significant changes to the implementation of
    [time.Timer] and [time.Ticker].
    
    First, `Timer`s and `Ticker`s that are no longer referred to by the program
    become eligible for garbage collection immediately, even if their
    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. doc/go1.22.html

      The vet tool now reports a non-deferred call to
      <a href="/pkg/time/#Since"><code>time.Since(t)</code></a> within a <code>defer</code> statement.
      This is equivalent to calling <code>time.Now().Sub(t)</code> before the <code>defer</code> statement,
      not when the deferred function is called. In nearly all cases, the correct code
    HTML
    - Registered: Tue Feb 06 11:13:10 GMT 2024
    - Last Modified: Wed Jan 31 20:51:56 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  9. doc/asm.html

    object file at the beginning of any name starting with a period:
    in an assembly source file within the math/rand package implementation,
    the package's Int function can be referred to as <code>·Int</code>.
    This convention avoids the need to hard-code a package's import path in its
    own source code, making it easier to move the code from one location to another.
    </p>
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  10. src/archive/zip/struct.go

    	Flags          uint16
    
    	// Method is the compression method. If zero, Store is used.
    	Method uint16
    
    	// Modified is the modified time of the file.
    	//
    	// When reading, an extended timestamp is preferred over the legacy MS-DOS
    	// date field, and the offset between the times is used as the timezone.
    	// If only the MS-DOS date is present, the timezone is assumed to be UTC.
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
Back to top