Learn R Programming

gooseR (version 0.1.2)

goose_async: 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)

Value

A promise that resolves to the response

Arguments

query

The query to execute

session_id

Optional session ID

Examples

Run this code
if (FALSE) {
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:", .) }
}

Run the code above in your browser using DataLab