Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 430 for noop (0.02 seconds)

  1. docs/pt/docs/advanced/async-tests.md

    /// tip | Dica
    
    Se você se deparar com um `RuntimeError: Task attached to a different loop` ao integrar funções assíncronas em seus testes (e.g. ao utilizar o [MotorClient do MongoDB](https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop)) Lembre-se de instanciar objetos que precisam de um loop de eventos (*event loop*) apenas em funções assíncronas, e.g. um callback `@app.on_event("startup")`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/ShellRetry.java

     * Docker builds can be more robust in the face of transient errors e.g. network issues.
     */
    public class ShellRetry {
        static String loop(String name, String command) {
            return loop(name, command, 4, "exit");
        }
    
        static String loop(String name, String command, int indentSize, String exitKeyword) {
            String indent = " ".repeat(indentSize);
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 10 13:10:22 GMT 2021
    - 1.9K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/stream-data.md

    /// info
    
    The example above is actually an exception, because the `io.BytesIO` object is already in memory, so reading it won't block anything.
    
    But in many cases reading a file or a file-like object would block.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  4. docs/tr/docs/advanced/async-tests.md

    /// tip | İpucu
    
    Testlerinize asenkron fonksiyon çağrıları entegre ederken `RuntimeError: Task attached to a different loop` hatasıyla karşılaşırsanız (ör. [MongoDB'nin MotorClient](https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop) kullanımı), event loop gerektiren nesneleri yalnızca async fonksiyonların içinde oluşturmanız gerektiğini unutmayın; örneğin bir `@app.on_event("startup")` callback'i içinde.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  5. .ci/jobs.t/elastic+elasticsearch+periodic+ear.yml

              dd if=/dev/zero of=dm-crypt.img bs=1 count=0 seek=60GB
              dd if=/dev/urandom of=key.secret bs=2k count=1
              LOOP=$(losetup -f)
              sudo losetup $LOOP dm-crypt.img
              sudo cryptsetup luksFormat -q --key-file key.secret "$LOOP"
              sudo cryptsetup open --key-file key.secret "$LOOP" secret --verbose
              sudo mkfs.ext2 /dev/mapper/secret
              sudo mkdir /mnt/secret
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue May 25 23:43:40 GMT 2021
    - 1.5K bytes
    - Click Count (0)
  6. cmd/storage-datatypes_test.go

    	}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    	dc := msgp.NewReader(rd)
    	b.Log("Size:", buf.Len(), "bytes")
    	b.SetBytes(1)
    	b.ReportAllocs()
    
    	for b.Loop() {
    		err := v.DecodeMsg(dc)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func BenchmarkDecodeDiskInfoMsgp(b *testing.B) {
    	v := DiskInfo{
    		Total:     1000,
    		Free:      1000,
    		Used:      1000,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  7. docs/es/docs/advanced/stream-data.md

    /// info | Información
    
    El ejemplo anterior es en realidad una excepción, porque el objeto `io.BytesIO` ya está en memoria, así que leerlo no bloqueará nada.
    
    Pero en muchos casos leer un archivo u objeto tipo archivo sí bloquearía.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  8. docs/es/docs/advanced/async-tests.md

    /// tip | Consejo
    
    Si encuentras un `RuntimeError: Task attached to a different loop` al integrar llamadas a funciones asíncronas en tus tests (por ejemplo, cuando usas [MotorClient de MongoDB](https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop)), recuerda crear instances de objetos que necesiten un loop de eventos solo dentro de funciones async, por ejemplo, en un callback `@app.on_event("startup")`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4K bytes
    - Click Count (0)
  9. docs/pt/docs/advanced/stream-data.md

    /// info | Informação
    
    O exemplo acima é, na verdade, uma exceção, porque o objeto `io.BytesIO` já está em memória, então lê-lo não bloqueará nada.
    
    Mas, em muitos casos, ler um arquivo ou um objeto semelhante a arquivo bloquearia.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  10. src/bufio/scan.go

    		// be extra careful: Scanner is for safe, simple jobs.
    		for loop := 0; ; {
    			n, err := s.r.Read(s.buf[s.end:len(s.buf)])
    			if n < 0 || len(s.buf)-s.end < n {
    				s.setErr(ErrBadReadCount)
    				break
    			}
    			s.end += n
    			if err != nil {
    				s.setErr(err)
    				break
    			}
    			if n > 0 {
    				s.empties = 0
    				break
    			}
    			loop++
    			if loop > maxConsecutiveEmptyReads {
    				s.setErr(io.ErrNoProgress)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed May 21 18:05:26 GMT 2025
    - 14.2K bytes
    - Click Count (0)
Back to Top