| goose_async | R Documentation |
Provides asynchronous and parallel query execution
Run a query in the background and return a promise
goose_async(query, session_id = NULL)
query |
The query to execute |
session_id |
Optional session ID |
A promise that resolves to the response
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.