parallel_queries

command
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Demonstrates running multiple opencode queries concurrently — each in its own subprocess + session — and aggregating the answers in Go.

Because each opencodesdk.Query call spawns its own opencode CLI, these run fully in parallel on multi-core machines. For many small prompts the per-call subprocess startup cost will dominate; for expensive model turns the parallelism wins handily.

go run ./examples/parallel_queries

Jump to

Keyboard shortcuts

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