Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for chanclose (0.14 sec)

  1. src/reflect/value.go

    func (v Value) Close() {
    	v.mustBe(Chan)
    	v.mustBeExported()
    	tt := (*chanType)(unsafe.Pointer(v.typ()))
    	if ChanDir(tt.Dir)&SendDir == 0 {
    		panic("reflect: close of receive-only channel")
    	}
    
    	chanclose(v.pointer())
    }
    
    // CanComplex reports whether [Value.Complex] can be used without panicking.
    func (v Value) CanComplex() bool {
    	switch v.kind() {
    	case Complex64, Complex128:
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top