Software
promises

promises

A promise library for R

R

The promises package brings asynchronous programming to R through a JavaScript-style promise API. It allows R code to execute non-blocking operations, which is particularly useful for long-running tasks in interactive applications like Shiny.

Promises solve the problem of keeping R applications responsive during time-consuming operations such as database queries, web API calls, or complex computations. Instead of blocking the entire R session while waiting for results, promises let you write code that executes asynchronously and handles results when they become available. This is especially valuable in Shiny applications where blocking operations would freeze the user interface for all users.

Contributors