Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 804 for _flush (0.36 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/UserInputConsoleRendererTest.groovy

            when:
            renderer.onOutput(userInputRequestEvent)
    
            then:
            1 * console.getBuildProgressArea() >> buildProgressArea
            1 * buildProgressArea.setVisible(false)
            1 * console.flush()
    
            and:
            0 * console._
            0 * listener.onOutput(_)
            0 * prompt._
            0 * textArea._
            0 * userInput._
            renderer.eventQueue.empty
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/compress/flate/flate_test.go

    						earlyEOF = false
    					}
    
    					if n == 0 && earlyEOF {
    						t.Errorf("On size:%d flush:%v, Read() = (0, io.EOF), want (n, io.EOF)", sz, flush)
    					}
    					if n != 0 && !earlyEOF {
    						t.Errorf("On size:%d flush:%v, Read() = (%d, io.EOF), want (0, io.EOF)", sz, flush, n)
    					}
    					break
    				}
    				if err != nil {
    					t.Fatal(err)
    				}
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 11K bytes
    - Viewed (1)
  3. src/compress/gzip/gzip.go

    	n, z.err = z.compressor.Write(p)
    	return n, z.err
    }
    
    // Flush flushes any pending compressed data to the underlying writer.
    //
    // It is useful mainly in compressed network protocols, to ensure that
    // a remote reader has enough data to reconstruct a packet. Flush does
    // not return until the data has been written. If the underlying
    // writer returns an error, Flush returns that error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cgo_trimpath_macro.txt

    func main() {
        C.printfile()
        C.fflush(C.stdout)
    }
    -- vendor/v.com/main/foo.c --
    #include "bar.h"
    -- vendor/v.com/c/bar.h --
    #include "stdio.h"
    
    void printfile() {
        printf("%s\n", __FILE__);
    }
    -- main/main.go --
    package main
    
    // #cgo CFLAGS: -I../c
    // #include "stdio.h"
    // void printfile();
    import "C"
    
    func main() {
        C.printfile()
        C.fflush(C.stdout)
    }
    -- main/foo.c --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 19:56:37 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/OutputStreamUtil.java

                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link OutputStream}をflushします。
         *
         * @param out
         *            出力ストリーム
         */
        public static void flush(final OutputStream out) {
            if (out == null) {
                return;
            }
            try {
                out.flush();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. pilot/pkg/model/xds_cache.go

    	interval := features.XDSCacheIndexClearInterval
    	go func() {
    		ticker := time.NewTicker(interval)
    		defer ticker.Stop()
    		for {
    			select {
    			case <-ticker.C:
    				x.cds.Flush()
    				x.eds.Flush()
    				x.rds.Flush()
    				x.sds.Flush()
    			case <-stop:
    				return
    			}
    		}
    	}()
    }
    
    func (x XdsCacheImpl) Add(entry XdsCacheEntry, pushRequest *PushRequest, value *discovery.Resource) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 02 07:02:05 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. src/text/tabwriter/tabwriter_test.go

    		}
    	}
    }
    
    func TestPanicDuringFlush(t *testing.T) {
    	defer wantPanicString(t, "tabwriter: panic during Flush (cannot write)")
    	var p panicWriter
    	w := new(Writer)
    	w.Init(p, 0, 0, 5, ' ', 0)
    	io.WriteString(w, "a")
    	w.Flush()
    	t.Errorf("failed to panic during Flush")
    }
    
    func TestPanicDuringWrite(t *testing.T) {
    	defer wantPanicString(t, "tabwriter: panic during Write (cannot write)")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

                            stopSeen = true;
                            break;
                        } else if (runnableClass == FlushOperationsCommand.class) {
                            // not holding the cache lock, flush is done so notify flush thread and continue
                            FlushOperationsCommand flushOperationsCommand = (FlushOperationsCommand) runnable;
                            flushOperationsCommand.completed();
                        } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. internal/http/response-recorder.go

    		lrw.writeHeaders(&lrw.headers, code, lrw.ResponseWriter.Header())
    		lrw.headersLogged = true
    		lrw.ResponseWriter.WriteHeader(code)
    	}
    }
    
    // Flush - Calls the underlying Flush.
    func (lrw *ResponseRecorder) Flush() {
    	lrw.ResponseWriter.(http.Flusher).Flush()
    }
    
    // Size - returns  the number of bytes written
    func (lrw *ResponseRecorder) Size() int {
    	return lrw.bytesWritten
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 00:13:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

          return this;
        }
    
        @Override
        public Appendable append(CharSequence csq, int start, int end) {
          result.append(csq, start, end);
          return this;
        }
    
        @Override
        public void flush() {
          flushed = true;
        }
    
        @Override
        public void close() {
          closed = true;
        }
      }
    
      public void testWriteMethods() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top