stream

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package stream implements Server-Sent Events streaming. It is surfaced through fal.Client.Stream and the package-level fal.Stream.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stream

func Stream(ctx context.Context, core *transport.Core, application string, arguments any, o *option.CallOptions) iter.Seq2[map[string]any, error]

Stream opens a Server-Sent Events stream and yields each decoded JSON event. It mirrors fal_client.stream / SyncClient.stream. The default sub-path is "/stream"; override it with WithPath. A non-nil error is yielded once and ends iteration; breaking the range early closes the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL