goose_async: Async and Parallel Execution Module for GooseR

View source: R/async.R

goose_asyncR Documentation

Async and Parallel Execution Module for GooseR

Description

Provides asynchronous and parallel query execution

Run a query in the background and return a promise

Usage

goose_async(query, session_id = NULL)

Arguments

query

The query to execute

session_id

Optional session ID

Value

A promise that resolves to the response

Examples

## Not run: 
library(promises)

# Single async query
goose_async("Explain async programming") %...>%
  { cat("Response:", .) }

# Chain multiple async operations
goose_async("Write a function") %...>%
  { goose_async(paste("Optimize this:", .)) } %...>%
  { cat("Optimized:", .) }

## End(Not run)

gooseR documentation built on Feb. 6, 2026, 5:07 p.m.