sync/atomic.Bool.Swap (method)
6 uses
sync/atomic (current package)
type.go#L23: func (x *Bool) Swap(new bool) (old bool) { return SwapUint32(&x.v, b32(new)) != 0 }
go.pact.im/x/supervisor
supervisor.go#L187: if p.stopped.Swap(true) {
supervisor.go#L204: if p.stopped.Swap(true) {
go.uber.org/multierr
error.go#L444: if l, ok := left.(*multiError); ok && !l.copyNeeded.Swap(true) {
google.golang.org/grpc/internal/transport
server_stream.go#L87: return s.headerSent.Swap(true)
net/http
server.go#L765: if res != nil && !res.didCloseNotify.Swap(true) {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)