Learn R Programming

gooseR (version 0.1.2)

goose_stream_async: Async Stream with Promise

Description

Stream response that returns a promise for async handling

Usage

goose_stream_async(query, show_progress = TRUE)

Value

A promise that resolves to the complete response

Arguments

query

The query to execute

show_progress

Show progress during streaming

Examples

Run this code
if (FALSE) {
library(promises)
goose_stream_async("Explain promises") %...>%
  { cat("Complete response:", .) }
}

Run the code above in your browser using DataLab