Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 804 for _flush (0.49 sec)

  1. android/guava/src/com/google/common/io/Flushables.java

       *     method
       * @throws IOException if {@code swallowIOException} is false and {@link Flushable#flush} throws
       *     an {@code IOException}.
       * @see Closeables#close
       */
      public static void flush(Flushable flushable, boolean swallowIOException) throws IOException {
        try {
          flushable.flush();
        } catch (IOException e) {
          if (swallowIOException) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/encoding/csv/writer.go

    	} else {
    		err = w.w.WriteByte('\n')
    	}
    	return err
    }
    
    // Flush writes any buffered data to the underlying [io.Writer].
    // To check if an error occurred during Flush, call [Writer.Error].
    func (w *Writer) Flush() {
    	w.w.Flush()
    }
    
    // Error reports any error that has occurred during
    // a previous [Writer.Write] or [Writer.Flush].
    func (w *Writer) Error() error {
    	_, err := w.w.Write(nil)
    	return err
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/compress/flate/deflate_test.go

    						t.Errorf("i=%d, firstN=%d, flush=%t: Write: %v", i, firstN, flush, err)
    						continue outer
    					}
    					if !flush {
    						continue
    					}
    					if err := w.Flush(); err != nil {
    						t.Errorf("i=%d, firstN=%d, flush=%t: Flush: %v", i, firstN, flush, err)
    						continue outer
    					}
    				}
    				if err := w.Close(); err != nil {
    					t.Errorf("i=%d, firstN=%d, flush=%t: Close: %v", i, firstN, flush, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  4. src/runtime/testdata/testwinlib/main.c

        {
            printf("cannot add vectored exception handler\n");
            fflush(stdout);
            return 2;
        }
        void *continueHandlerHandle = AddVectoredContinueHandler(0, customContinueHandlder);
        if (NULL == continueHandlerHandle)
        {
            printf("cannot add vectored continue handler\n");
            fflush(stdout);
            return 2;
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/text/tabwriter/example_test.go

    	fmt.Fprintln(w)
    	w.Flush()
    
    	// Format right-aligned in space-separated columns of minimal width 5
    	// and at least one blank of padding (so wider column entries do not
    	// touch each other).
    	w.Init(os.Stdout, 5, 0, 1, ' ', tabwriter.AlignRight)
    	fmt.Fprintln(w, "a\tb\tc\td\t.")
    	fmt.Fprintln(w, "123\t12345\t1234567\t123456789\t.")
    	fmt.Fprintln(w)
    	w.Flush()
    
    	// output:
    	// a	b	c	d		.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 23 22:09:32 UTC 2016
    - 2K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/WorkInProgressRendererTest.groovy

            renderer.onOutput(start(id: 3, parentId: null, status: ":bar"))
            renderer.onOutput(updateNow())
            console.flush()
    
            then:
            progressArea.display == ["> :foo"]
    
            and:
            renderer.onOutput(complete(2))
            renderer.onOutput(updateNow())
            console.flush()
    
            then:
            progressArea.display == ["> :bar"]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/ThrottlingOutputEventListenerTest.groovy

            10_000 * listener.onOutput(_)
        }
    
        def "background flush does nothing when events already flushed"() {
            def event1 = event('1')
            def event2 = event('2')
            def flush = new FlushOutputEvent()
    
            given:
            renderer.onOutput(event1)
            renderer.onOutput(event2)
            renderer.onOutput(flush)
    
            when:
            executor.runFixedScheduledActionsNow()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/TestWriter.java

        super.write(c);
        flush(); // flush write to TestOutputStream to get its behavior
      }
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        super.write(cbuf, off, len);
        flush();
      }
    
      @Override
      public void write(String str, int off, int len) throws IOException {
        super.write(str, off, len);
        flush();
      }
    
      public boolean closed() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/TestCharSink.java

      public Writer openStream() throws IOException {
        // using TestByteSink's output stream to get option behavior, so flush to it on every write
        return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) {
          @Override
          public void write(int c) throws IOException {
            super.write(c);
            flush();
          }
    
          @Override
          public void write(char[] cbuf, int off, int len) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 2K bytes
    - Viewed (0)
  10. src/net/http/responsecontroller_test.go

    		w.Write([]byte("one"))
    		if err := ctl.Flush(); err != nil {
    			t.Errorf("before setting deadline: ctl.Flush() = %v, want nil", err)
    		}
    		if err := ctl.SetWriteDeadline(time.Now().Add(-10 * time.Second)); err != nil {
    			t.Errorf("ctl.SetWriteDeadline() = %v, want nil", err)
    		}
    
    		w.Write([]byte("two"))
    		if err := ctl.Flush(); err == nil {
    			t.Errorf("after setting deadline: ctl.Flush() = nil, want non-nil")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:20:31 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top