- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 335 for Stream (0.06 seconds)
-
internal/grid/stream.go
// If the request context is canceled, the stream will no longer process requests. // Requests sent cannot be used any further by the called. Requests chan<- []byte muxID uint64 ctx context.Context } // Send a payload to the remote server. func (s *Stream) Send(b []byte) error { if s.Requests == nil { return errors.New("stream does not accept requests") } select {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jun 07 15:51:52 GMT 2024 - 3.1K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt
) = apply { actions += { stream -> stream.sink.writeUtf8(s) stream.sink.flush() responseSent.countDown() } } fun exhaustResponse() = apply { actions += { stream -> stream.sink.close() } } fun sleep( duration: Long, unit: TimeUnit, ) = apply { actions += { Thread.sleep(unit.toMillis(duration)) } } override fun handle(socket: Socket) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 3.3K bytes - Click Count (0) -
docs/debugging/inspect/decrypt-v2.go
if err := stream.Skip(); err != nil { return fmt.Errorf("stream skip: %w", err) } continue } return fmt.Errorf("next stream: %w", err) } if strings.Contains(stream.Name, "..") || !utf8.ValidString(stream.Name) { return fmt.Errorf("invalid stream name: %q", stream.Name) } dst := filepath.Join(extractDir, stream.Name) os.Mkdir(extractDir, 0o755) w, err := os.Create(dst) if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Feb 17 17:09:42 GMT 2025 - 2.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/LifecycleRegistry.java
package org.apache.maven.api.services; import java.util.List; import java.util.stream.Stream; import java.util.stream.StreamSupport; import org.apache.maven.api.Lifecycle; public interface LifecycleRegistry extends ExtensibleEnumRegistry<Lifecycle>, Iterable<Lifecycle> { default Stream<Lifecycle> stream() { return StreamSupport.stream(spliterator(), false); } List<String> computePhases(Lifecycle lifecycle);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Aug 29 05:48:54 GMT 2024 - 1.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt
* * When the maximum concurrent streams limit is reduced, some allocations will be rescinded. * Attempting to create new streams on these allocations will fail. * * Note that an allocation may be released before its stream is completed. This is intended to make * bookkeeping easier for the caller: releasing the allocation as soon as the terminal stream has * been found. But only complete the stream once its data stream has been exhausted. */
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 4.3K bytes - Click Count (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt
| """.trimMargin(), ).setHeader("content-type", "text/event-stream") .build(), ) newEventSource() listener.assertOpen() listener.assertEvent(null, null, "hey") listener.assertClose() assertThat(server.takeRequest().headers["Accept"]) .isEqualTo("text/event-stream") } @Test fun eventListenerEvents() { server.enqueue(Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 8.8K bytes - Click Count (0) -
compat/maven-toolchain-model/src/main/java/org/apache/maven/toolchain/model/io/xpp3/MavenToolchainsXpp3Writer.java
} /** * Method write. * * @param stream a stream object. * @param persistedToolchains a persistedToolchains object. * @throws IOException java.io.IOException if any. */ public void write(OutputStream stream, PersistedToolchains persistedToolchains) throws IOException { try { delegate.write(stream, persistedToolchains.getDelegate()); } catch (XMLStreamException e) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat May 31 10:30:45 GMT 2025 - 2.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/TreeMultimap.java
*/ @GwtIncompatible @J2ktIncompatible private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeObject(keyComparator()); stream.writeObject(valueComparator()); Serialization.writeMultimap(this, stream); } @GwtIncompatible @J2ktIncompatible @SuppressWarnings("unchecked") // reading data stored by writeObjectCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
public void testToOptionalEmpty() { assertThat(Stream.empty().collect(toOptional())).isEmpty(); } public void testToOptionalSingleton() { assertThat(Stream.of(1).collect(toOptional())).hasValue(1); } public void testToOptionalNull() { Stream<@Nullable Object> stream = Stream.of((Object) null); assertThrows(NullPointerException.class, () -> stream.collect(toOptional())); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu May 15 21:47:56 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MoreCollectors.java
/** * A collector that converts a stream of zero or one elements to an {@code Optional}. * * @throws IllegalArgumentException if the stream consists of two or more elements. * @throws NullPointerException if any element in the stream is {@code null}. * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not beCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Apr 14 16:07:06 GMT 2025 - 5.6K bytes - Click Count (0)