- Sort Score
- Result 10 results
- Languages All
Results 1391 - 1400 of 1,418 for Gopher (0.06 sec)
-
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
return Iterators.forArray(1, 2, 3); } }.test(); } /* * TODO(cpovirk): Test forArray with ListIteratorTester (not just IteratorTester), including with * a start position other than 0. */ public void testForEnumerationEmpty() { Enumeration<Integer> enumer = enumerate(); Iterator<Integer> iter = Iterators.forEnumeration(enumer); assertFalse(iter.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
cmd/object-handlers.go
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRangePartNumber), r.URL) return } rs, rangeErr = parseRequestRangeSpec(rangeHeader) // Handle only errInvalidRange. Ignore other // parse error and treat it as regular Get // request like Amazon S3. if errors.Is(rangeErr, errInvalidRange) { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRange), r.URL) return } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 05 05:16:15 UTC 2024 - 117.4K bytes - Viewed (0) -
api/go1.txt
pkg crypto/cipher, func NewOFB(Block, []uint8) Stream pkg crypto/cipher, method (StreamReader) Read([]uint8) (int, error) pkg crypto/cipher, method (StreamWriter) Close() error pkg crypto/cipher, method (StreamWriter) Write([]uint8) (int, error) pkg crypto/cipher, type Block interface { BlockSize, Decrypt, Encrypt } pkg crypto/cipher, type Block interface, BlockSize() int
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
通过这种方式,我们确保数据库会话在请求后始终关闭,即使在处理请求时出现异常也会关闭。 /// ### 关于`request.state` `request.state`是每个`Request`对象的属性。它用于存储附加到请求本身的任意对象,例如本例中的数据库会话。您可以在[Starlette 的关于`Request`state](https://www.starlette.io/requests/#other-state)的文档中了解更多信息。 对于这种情况下,它帮助我们确保在整个请求中使用单个数据库会话,然后关闭(在中间件中)。 ### 使用`yield`依赖项与使用中间件的区别 在此处添加**中间件**与`yield`的依赖项的作用效果类似,但也有一些区别: * 中间件需要更多的代码并且更复杂一些。 * 中间件必须是一个`async`函数。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 27.1K bytes - Viewed (0) -
tests/migrate_test.go
type ColumnStruct2 struct { gorm.Model Name string StringBool bool // change existing boolean column from string to boolean SmallintBool bool // change existing boolean column from smallint or other to boolean } DB.Migrator().DropTable(&ColumnStruct{}) if err := DB.AutoMigrate(&ColumnStruct{}); err != nil { t.Errorf("Failed to migrate, got %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
MOVQ CR0, DX // 0f20c2 MOVQ CR4, DI // 0f20e7 MOVQ AX, CR0 // 0f22c0 MOVQ DX, CR0 // 0f22c2 MOVQ DI, CR4 // 0f22e7 MOVQ DR0, AX // 0f21c0 MOVQ DR6, DX // 0f21f2 MOVQ DR7, SI // 0f21fe // Test other movtab entries. PUSHQ GS // 0fa8 PUSHQ FS // 0fa0 POPQ FS // 0fa1 POPQ GS // 0fa9 // All instructions below semantically have unsigned operands, // but previous assembler permitted negative arguments.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Apr 11 18:32:50 UTC 2023 - 57.6K bytes - Viewed (0) -
internal/grid/connection.go
} if err != nil { return err } t := time.Now().UTC() c.lastConnect.Store(&t) // Signal that we are reconnected, update state and handle messages. // Prevent other connections from connecting while we process. c.reconnectMu.Lock() if c.remoteID != nil { c.reconnected() } rid := uuid.UUID(req.ID) c.remoteID = &rid // Handle incoming messages until disconnect.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 46.7K bytes - Viewed (0) -
fess-crawler/src/main/resources/org/codelibs/fess/crawler/mime/tika-mimetypes.xml
* Glob patterns must be unique, if there's a clash assign to the most popular format * The main mime type should be the canonical one, use aliases for any other widely used forms * Where there's a hierarchy in the types, list it via a parent * Highly specific magic matches get a high priority * General magic matches which could trigger a false-positive need a low one
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Sep 21 06:46:43 UTC 2023 - 298.5K bytes - Viewed (1) -
cmd/erasure-healing_test.go
if hr.Before.Drives[0].State != madmin.DriveStateMissing { t.Fatalf("Unexpected drive state: %v", hr.Before.Drives[0].State) } // Check the state of all other disks (should be ok) for i, h := range append(hr.Before.Drives[1:], hr.After.Drives...) { if h.State != madmin.DriveStateOk { t.Fatalf("Unexpected drive state (%d): %v", i+1, h.State) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 49K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* element anymore. Otherwise, when we remove from the old iterator, we may be invalidating * the new one. The result is a ConcurrentModificationException or other bad behavior. * * (If we decide that we really, really hate allocating two Iterators per cycle instead of * one, we can optimistically store the new Iterator and then be willing to throw it out if
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0)