Package: promises 1.3.2

Joe Cheng

promises: Abstractions for Promise-Based Asynchronous Programming

Provides fundamental abstractions for doing asynchronous programming in R using promises. Asynchronous programming is useful for allowing a single R process to orchestrate multiple tasks in the background while also attending to something else. Semantics are similar to 'JavaScript' promises, but with a syntax that is idiomatic R.

Authors:Joe Cheng [aut, cre], Posit Software, PBC [cph, fnd]

promises_1.3.2.tar.gz
promises_1.3.2.tar.gz(r-4.5-noble)promises_1.3.2.tar.gz(r-4.4-noble)
promises_1.3.2.tgz(r-4.4-emscripten)promises_1.3.2.tgz(r-4.3-emscripten)
promises.pdf |promises.html
promises/json (API)
NEWS

# Install 'promises' in R:
install.packages('promises', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rstudio/promises/issues

Pkgdown:https://rstudio.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

cpp

12.39 score 2.4k packages 628 scripts 659k downloads 23 exports 6 dependencies

Last updated 17 days agofrom:fc94945e62. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 28 2024
R-4.5-linux-x86_64OKNov 28 2024

Exports:%...!%%...>%%...T!%%...T>%%>%%T>%as.promisecatchfinallyfuture_promisefuture_promise_queueis.promiseis.promisingnew_promise_domainpromisepromise_allpromise_mappromise_racepromise_reducepromise_rejectpromise_resolvethenwith_promise_domain

Dependencies:fastmaplatermagrittrR6Rcpprlang

Advanced future and promises usage

Rendered frompromises_05_future_promise.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2023-08-10
Started: 2023-08-10

An informal introduction to async programming

Rendered frompromises_02_intro.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2023-08-10
Started: 2023-08-10

Case study: converting a Shiny app to async

Rendered frompromises_08_casestudy.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2024-11-26
Started: 2023-08-10

Combining promises

Rendered frompromises_07_combining.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2023-08-10
Started: 2023-08-10

Launching tasks with future

Rendered frompromises_04_futures.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2024-04-05
Started: 2023-08-10

Using promises with Shiny

Rendered frompromises_06_shiny.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2024-11-26
Started: 2023-08-10

Why use promises?

Rendered frompromises_01_motivation.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2023-08-10
Started: 2023-08-10

Working with promises in R

Rendered frompromises_03_overview.Rmdusingknitr::rmarkdownon Nov 28 2024.

Last update: 2023-08-10
Started: 2023-08-10

Readme and manuals

Help Manual

Help pageTopics
'future' promisefuture_promise future_promise_queue
Coerce to a promiseas.promise is.promise is.promising
Promise pipe operators%...!% %...>% %...T!% %...T>% pipes
Create a new promise objectpromise
Combine multiple promise objectspromise_all promise_race
Promise-aware lapply/mappromise_map
Promise-aware version of Reducepromise_reduce
Create a resolved or rejected promisepromise_reject promise_resolve
Access the results of a promisecatch finally then
Promise domainsnew_promise_domain with_promise_domain