Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CancelCauseFunc (0.33 sec)

  1. src/context/x_test.go

    		t.Errorf("after CancelCauseFunc ctx.Err() = %v, want %v", got, Canceled)
    	}
    	if got := Cause(ctx); got != cause {
    		t.Errorf("after CancelCauseFunc Cause(ctx) = %v, want %v", got, cause)
    	}
    	if got := ccc.Err(); got != nil {
    		t.Errorf("after CancelCauseFunc ccc.Err() = %v, want %v", got, nil)
    	}
    	if got := Cause(ccc); got != nil {
    		t.Errorf("after CancelCauseFunc Cause(ccc) = %v, want %v", got, nil)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/context/context.go

    	c := withCancel(parent)
    	return c, func() { c.cancel(true, Canceled, nil) }
    }
    
    // A CancelCauseFunc behaves like a [CancelFunc] but additionally sets the cancellation cause.
    // This cause can be retrieved by calling [Cause] on the canceled Context or on
    // any of its derived Contexts.
    //
    // If the context has already been canceled, CancelCauseFunc does not set the cause.
    // For example, if childContext is derived from parentContext:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  3. internal/grid/stream.go

    	// Canceling the context will cause the context cancellation error to be returned.
    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    	// Requests sent to the server.
    	// If the handler is defined with 0 incoming capacity this will be nil.
    	// Channel *must* be closed to signal the end of the stream.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/net/http/transport.go

    	}
    }
    
    // prepareTransportCancel sets up state to convert Transport.CancelRequest into context cancelation.
    func (t *Transport) prepareTransportCancel(req *Request, origCancel context.CancelCauseFunc) context.CancelCauseFunc {
    	// Historically, RoundTrip has not modified the Request in any way.
    	// We could avoid the need to keep a map of all in-flight requests by adding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  5. internal/grid/muxclient.go

    type muxClient struct {
    	MuxID              uint64
    	SendSeq, RecvSeq   uint32
    	LastPong           int64
    	BaseFlags          Flags
    	ctx                context.Context
    	cancelFn           context.CancelCauseFunc
    	parent             *Connection
    	respWait           chan<- Response
    	respMu             sync.Mutex
    	singleResp         bool
    	closed             bool
    	stateless          bool
    	acked              bool
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. internal/grid/connection.go

    	}
    	c.connChange.Broadcast()
    }
    
    // monitorState will monitor the state of the connection and close the net.Conn if it changes.
    func (c *Connection) monitorState(conn net.Conn, cancel context.CancelCauseFunc) {
    	c.connChange.L.Lock()
    	defer c.connChange.L.Unlock()
    	for {
    		newState := c.State()
    		if newState != StateConnected {
    			conn.Close()
    			cancel(ErrDisconnected)
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. api/go1.20.txt

    pkg bytes, func CutSuffix([]uint8, []uint8) ([]uint8, bool) #42537
    pkg context, func Cause(Context) error #51365
    pkg context, func WithCancelCause(Context) (Context, CancelCauseFunc) #51365
    pkg context, type CancelCauseFunc func(error) #51365
    pkg crypto/ecdh, func P256() Curve #52221
    pkg crypto/ecdh, func P384() Curve #52221
    pkg crypto/ecdh, func P521() Curve #52221
    pkg crypto/ecdh, func X25519() Curve #52221
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Ring).Unlink", Method, 0},
    		{"New", Func, 0},
    		{"Ring", Type, 0},
    		{"Ring.Value", Field, 0},
    	},
    	"context": {
    		{"AfterFunc", Func, 21},
    		{"Background", Func, 7},
    		{"CancelCauseFunc", Type, 20},
    		{"CancelFunc", Type, 7},
    		{"Canceled", Var, 7},
    		{"Cause", Func, 20},
    		{"Context", Type, 7},
    		{"DeadlineExceeded", Var, 7},
    		{"TODO", Func, 7},
    		{"WithCancel", Func, 7},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top