- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for closures (0.07 sec)
-
android/guava/src/com/google/common/io/Closer.java
* <p>An exception that is suppressed is added to the exception that <i>will</i> be thrown using * {@code Throwable.addSuppressed(Throwable)}. * * @author Colin Decker * @since 14.0 */ // Coffee's for {@link Closer closers} only. @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public final class Closer implements Closeable { /** Creates a new {@link Closer}. */ public static Closer create() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.4K bytes - Viewed (0) -
guava/src/com/google/common/io/Closer.java
* <p>An exception that is suppressed is added to the exception that <i>will</i> be thrown using * {@code Throwable.addSuppressed(Throwable)}. * * @author Colin Decker * @since 14.0 */ // Coffee's for {@link Closer closers} only. @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public final class Closer implements Closeable { /** Creates a new {@link Closer}. */ public static Closer create() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
} /** Returns an immutable list containing [elements]. */ @SafeVarargs internal fun <T> immutableListOf(vararg elements: T): List<T> { return Collections.unmodifiableList(listOf(*elements.clone())) } /** Closes this, ignoring any checked exceptions. */ internal fun Socket.closeQuietly() { try { close() } catch (e: AssertionError) { throw e } catch (rethrown: RuntimeException) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 10.7K bytes - Viewed (0) -
internal/ioutil/ioutil.go
// to the peer. type WriteOnCloser struct { io.Writer hasWritten bool } func (w *WriteOnCloser) Write(p []byte) (int, error) { w.hasWritten = true return w.Writer.Write(p) } // Close closes the WriteOnCloser. It behaves like io.Closer. func (w *WriteOnCloser) Close() error { if !w.hasWritten { _, err := w.Write(nil) if err != nil { return err } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 10.9K bytes - Viewed (0) -
common/config/.golangci.yml
- name: unreachable-code - name: struct-tag - name: constant-logical-expr - name: bool-literal-in-expr - name: redefines-builtin-id - name: imports-blacklist - name: range-val-in-closure - name: range-val-address - name: waitgroup-by-value - name: atomic - name: call-to-gc - name: duplicated-imports - name: string-of-int - name: defer
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 11.7K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
t.Fatal("expected pod to be in cache") } } // for tests that call `runtime.GC()` - we have no control over when the GC is actually scheduled, // and it is flake-prone to check for closure after calling it, this retries for a bit to make // sure the netns is closed eventually. func assertNSClosed(t *testing.T, closed *atomic.Bool) { for i := 0; i < 5; i++ { if closed.Load() { return }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jul 25 16:13:38 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Response.kt
* value that may be consumed only once and then closed. All other properties are immutable. * * This class implements [Closeable]. Closing it simply closes its response body. See * [ResponseBody] for an explanation and examples. */ class Response internal constructor( /** * The request that initiated this HTTP response. This is not necessarily the same request issued
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 06 09:38:30 UTC 2024 - 15.6K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer.go
} // CloseWithError closes the writer; reads will return // no bytes and the error err, or EOF if err is nil. // // CloseWithError never overwrites the previous error if it exists // and always returns nil. func (r *RingBuffer) CloseWithError(err error) { if err == nil { err = io.EOF } r.setErr(err, false) } // CloseWriter closes the writer.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 13.3K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
* E.g., `await myfile.seek(0)` would go to the start of the file. * This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file. As all these methods are `async` methods, you need to "await" them. For example, inside of an `async` *path operation function* you can get the contents with: ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.2K bytes - Viewed (0) -
internal/event/target/kafka.go
return nil, err } return &sarama.ProducerMessage{ Topic: target.args.Topic, Key: sarama.StringEncoder(key), Value: sarama.ByteEncoder(data), }, nil } // Close - closes underneath kafka connection. func (target *KafkaTarget) Close() error { close(target.quitCh) if target.batch != nil { target.batch.Close() } if target.producer != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 13.6K bytes - Viewed (0)