sync/atomic.Bool.Swap (method)

2 uses

	sync/atomic (current package)
		type.go#L23: func (x *Bool) Swap(new bool) (old bool) { return SwapUint32(&x.v, b32(new)) != 0 }

	net/http
		server.go#L765: 	if res != nil && !res.didCloseNotify.Swap(true) {