Package: async 0.3.2

async: Coroutines: Generators / Yield, Async / Await, and Streams

Write sequential-looking code that pauses and resumes. gen() creates a generator, an iterator that returns a value and pauses each time it reaches a yield() call. async() creates a promise, which runs until it reaches a call to await(), then resumes when information is available. These work similarly to generator and async constructs from 'Python' or 'JavaScript'. Objects produced are compatible with the 'iterators' and 'promises' packages. Version 0.3 supports on.exit, single-step debugging, stream() for making asynchronous iterators, and delimited goto() in switch() calls.

Authors:Peter Meilstrup [aut, cre]

async_0.3.2.tar.gz
async_0.3.2.zip(r-4.5)async_0.3.2.zip(r-4.4)async_0.3.2.zip(r-4.3)
async_0.3.2.tgz(r-4.4-any)async_0.3.2.tgz(r-4.3-any)
async_0.3.2.tar.gz(r-4.5-noble)async_0.3.2.tar.gz(r-4.4-noble)
async_0.3.2.tgz(r-4.4-emscripten)async_0.3.2.tgz(r-4.3-emscripten)
async.pdf |async.html
async/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/crowding/async/issues

On CRAN:

asyncasync-awaitasynchronousasynchronous-programmingchannelscoroutinesgeneratorgenerator-functiongenerator-functionsgeneratorsiteratoriteratorsstreamsyield

23 exports 57 stars 3.24 score 39 dependencies 50 scripts 117 downloads

Last updated 1 years agofrom:8ad2c9b0ec. Checks:ERROR: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesFAILSep 16 2024
R-4.5-winWARNINGSep 16 2024
R-4.5-linuxWARNINGSep 16 2024
R-4.4-winWARNINGSep 16 2024
R-4.4-macWARNINGSep 16 2024
R-4.3-winWARNINGSep 16 2024
R-4.3-macWARNINGSep 16 2024

Exports:asyncawaitawaitNextchannelcollectcollectorcombinedebugAsyncdelaygathergengotographAsyncis.channeliterornextOrnextThenpausablesrunstreamsubscribeyieldyieldFrom

Dependencies:briocallrclicrayondescdiffobjdigestevaluatefansifastmapfsglueiterorsjsonlitelaterlifecyclemagrittrnsevalpillarpkgbuildpkgconfigpkgloadpraiseprocessxpromisespsR6Rcpprematch2rlangrprojrootstringistringrtestthattibbleutf8vctrswaldowithr