- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 492 for yields (0.04 seconds)
-
src/bytes/iter.go
if !yield(s[:size:size]) { return } s = s[size:] } return } for { i := Index(s, sep) if i < 0 { break } frag := s[:i+sepSave] if !yield(frag[:len(frag):len(frag)]) { return } s = s[i+len(sep):] } yield(s[:len(s):len(s)]) } } // SplitSeq returns an iterator over all subslices of s separated by sep.Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Sep 03 14:04:47 GMT 2025 - 3.6K bytes - Click Count (0) -
cmd/speedtest.go
} // if the default concurrency yields zero results, throw an error. if throughputHighestResults[i].Downloads == 0 && opts.concurrencyStart == concurrency { errStr = fmt.Sprintf("no results for downloads upon first attempt, concurrency %d and duration %s", opts.concurrencyStart, opts.duration) } // if the default concurrency yields zero results, throw an error.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 9.2K bytes - Click Count (0) -
internal/s3select/jstream/README.md
fmt.Printf("%v\n ", mv.Value) } ``` output: ``` map[desc:RGB colors:[red green blue]] map[desc:CMYK colors:[cyan magenta yellow black]] ``` likewise, increasing depth level to `3` yields: ``` red green blue cyan magenta yellow black ``` optionally, kev:value pairs can be emitted as an individual struct: ```go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Sep 23 19:35:41 GMT 2024 - 3.2K bytes - Click Count (0) -
doc/go_spec.html
left, right *Tree[K, V] key K value V } func (t *Tree[K, V]) walk(yield func(key K, val V) bool) bool { return t == nil || t.left.walk(yield) && yield(t.key, t.value) && t.right.walk(yield) } func (t *Tree[K, V]) Walk(yield func(key K, val V) bool) { t.walk(yield) } // walk tree t in-order var t Tree[string, int] for k, v := range t.Walk {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 02 23:07:19 GMT 2025 - 286.5K bytes - Click Count (1) -
cmd/tier.go
return d, nil } // configReader returns a PutObjReader and ObjectOptions needed to save config // using a PutObject API. PutObjReader encrypts json encoded tier configurations // if KMS is enabled, otherwise simply yields the json encoded bytes as is. // Similarly, ObjectOptions value depends on KMS' status. func (config *TierConfigMgr) configReader(ctx context.Context) (*PutObjReader, *ObjectOptions, error) { b, err := config.Bytes()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.6K bytes - Click Count (0) -
doc/go_mem.html
The closing of a channel is synchronized before a receive that returns a zero value because the channel is closed. </p> <p> In the previous example, replacing <code>c <- 0</code> with <code>close(c)</code> yields a program with the same guaranteed behavior. </p> <p class="rule"> A receive from an unbuffered channel is synchronized before the completion of the corresponding send on that channel. </p> <p>
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Aug 05 15:41:37 GMT 2025 - 26.6K bytes - Click Count (0) -
src/bytes/bytes.go
// empty slice if s contains only white space. Every element of the returned slice is // non-empty. Unlike [Split], leading and trailing runs of white space characters // are discarded. func Fields(s []byte) [][]byte { // First count the fields. // This is an exact count if s is ASCII, otherwise it is an approximation. n := 0 wasSpace := 1 // setBits is used to track which bits are set in the bytes of s. setBits := uint8(0)
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Sep 16 16:42:15 GMT 2025 - 35.5K bytes - Click Count (0) -
schema/index_test.go
// Note: Duplicate Columns {Field: &schema.Field{Name: "FieldD"}}, }, }, { Name: "uniq_field_e1_e2", Class: "UNIQUE", Fields: []schema.IndexOption{ {Field: &schema.Field{Name: "FieldE1"}}, {Field: &schema.Field{Name: "FieldE2"}}, }, }, { Name: "uniq_field_f1_f2", Class: "UNIQUE", Fields: []schema.IndexOption{Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Dec 06 02:27:44 GMT 2024 - 7.9K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
사실, FastAPI는 내부적으로 이 두 데코레이터를 사용합니다. /// ## `yield`를 사용하는 데이터베이스 의존성 예를 들어, 이 기능을 사용하면 데이터베이스 세션을 생성하고 작업이 끝난 후에 세션을 종료할 수 있습니다. 응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다: {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *} yield된 값은 *경로 작업* 및 다른 의존성들에 주입되는 값 입니다: {* ../../docs_src/dependencies/tutorial007.py hl[4] *} `yield`문 다음의 코드는 응답을 생성한 후 보내기 전에 실행됩니다:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Feb 09 14:54:09 GMT 2025 - 14.2K bytes - Click Count (0) -
docs/ru/docs/tutorial/body-fields.md
# Body - Поля { #body-fields } Таким же способом, как вы объявляете дополнительную валидацию и метаданные в параметрах *функции обработки пути* с помощью функций `Query`, `Path` и `Body`, вы можете объявлять валидацию и метаданные внутри Pydantic моделей, используя функцию `Field` из Pydantic. ## Импорт `Field` { #import-field } Сначала вы должны импортировать его: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | ВниманиеCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 4.2K bytes - Click Count (0)