- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 109 for panic2 (0.09 sec)
-
src/iter/iter.go
yield := func(v1 V) bool { if done { return false } if !yieldNext { panic("iter.Pull: yield called again before next") } yieldNext = false v, ok = v1, true race.Release(unsafe.Pointer(&racer)) coroswitch(c) race.Acquire(unsafe.Pointer(&racer)) return !done } // Recover and propagate panics from seq. defer func() { if p := recover(); p != nil { panicValue = p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 6.6K bytes - Viewed (0) -
src/sync/waitgroup.go
// Need to model this as a read, because there can be // several concurrent wg.counter transitions from 0. race.Read(unsafe.Pointer(&wg.sema)) } if v < 0 { panic("sync: negative WaitGroup counter") } if w != 0 && delta > 0 && v == int32(delta) { panic("sync: WaitGroup misuse: Add called concurrently with Wait") } if v > 0 || w == 0 { return } // This goroutine has set counter to 0 when waiters > 0.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/sha3/sha3.go
d.state = spongeSqueezing d.n = d.rate copyOut(d, d.storage[:d.rate]) } // Write absorbs more data into the hash's state. It panics if any // output has already been read. func (d *state) Write(p []byte) (written int, err error) { if d.state != spongeAbsorbing { panic("sha3: Write after Read") } written = len(p) for len(p) > 0 { if d.n == 0 && len(p) >= d.rate {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.4K bytes - Viewed (0) -
src/math/big/float.go
return z } func validateBinaryOperands(x, y *Float) { if !debugFloat { // avoid performance bugs panic("validateBinaryOperands called but debugFloat is not set") } if len(x.mant) == 0 { panic("empty mantissa for x") } if len(y.mant) == 0 { panic("empty mantissa for y") } } // z = x + y, ignoring signs of x and y for the addition
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
// MustDeref returns the type of the variable pointed to by t. // It panics if t's core type is not a pointer. // // TODO(adonovan): ideally this would live in typesinternal, but that // creates an import cycle. Move there when we melt this package down. func MustDeref(t types.Type) types.Type { if ptr, ok := CoreType(t).(*types.Pointer); ok { return ptr.Elem() } panic(fmt.Sprintf("%v is not a pointer", t))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
pkg/test/framework/components/echo/match/matchers_test.go
panic("implement me") } func (f fakeInstance) Clusters() cluster.Clusters { panic("implement me") } func (f fakeInstance) Call(echo.CallOptions) (echo.CallResult, error) { panic("implement me") } func (f fakeInstance) CallOrFail(test.Failer, echo.CallOptions) echo.CallResult { panic("implement me") } func (f fakeInstance) UpdateWorkloadLabel(add map[string]string, remove []string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 5.2K bytes - Viewed (0) -
src/iter/pull_test.go
t.Fatal("failed to propagate panic on stop") } // Make sure we don't panic again if we try to call next or stop. if _, ok := next(); ok { t.Fatal("next returned true after iterator panicked") } // Calling stop again should be a no-op. stop() }) } func panicSeq() Seq[int] { return func(yield func(int) bool) { panic("boom") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
pkg/test/framework/components/echo/echotest/filters_test.go
panic("implement me") } func (f fakeInstance) Clusters() cluster.Clusters { panic("implement me") } func (f fakeInstance) Call(echo.CallOptions) (echo.CallResult, error) { panic("implement me") } func (f fakeInstance) CallOrFail(test.Failer, echo.CallOptions) echo.CallResult { panic("implement me") } func (f fakeInstance) UpdateWorkloadLabel(add map[string]string, remove []string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 13.1K bytes - Viewed (0) -
src/os/pidfd_other.go
func pidfdFind(_ int) (uintptr, error) { return 0, syscall.ENOSYS } func (p *Process) pidfdRelease() {} func (_ *Process) pidfdWait() (*ProcessState, error) { panic("unreachable") } func (_ *Process) pidfdSendSignal(_ syscall.Signal) error { panic("unreachable")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 692 bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/depBase/dep.go
import ( "os" "reflect" "testshared/depBaseInternal" ) // Issue 61973: indirect dependencies are not initialized. func init() { if !depBaseInternal.Initialized { panic("depBaseInternal not initialized") } if os.Stdout == nil { panic("os.Stdout is nil") } Initialized = true } var Initialized bool var SlicePtr interface{} = &[]int{} var V int = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 1K bytes - Viewed (0)