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:
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')) |
Bug tracker:https://github.com/crowding/async/issues
asyncasync-awaitasynchronousasynchronous-programmingchannelscoroutinesgeneratorgenerator-functiongenerator-functionsgeneratorsiteratoriteratorsstreamsyield
Last updated 1 years agofrom:8ad2c9b0ec. Checks:ERROR: 1 WARNING: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | FAIL | Sep 16 2024 |
R-4.5-win | WARNING | Sep 16 2024 |
R-4.5-linux | WARNING | Sep 16 2024 |
R-4.4-win | WARNING | Sep 16 2024 |
R-4.4-mac | WARNING | Sep 16 2024 |
R-4.3-win | WARNING | Sep 16 2024 |
R-4.3-mac | WARNING | Sep 16 2024 |
Exports:asyncawaitawaitNextchannelcollectcollectorcombinedebugAsyncdelaygathergengotographAsyncis.channeliterornextOrnextThenpausablesrunstreamsubscribeyieldyieldFrom
Dependencies:briocallrclicrayondescdiffobjdigestevaluatefansifastmapfsglueiterorsjsonlitelaterlifecyclemagrittrnsevalpillarpkgbuildpkgconfigpkgloadpraiseprocessxpromisespsR6Rcpprematch2rlangrprojrootstringistringrtestthattibbleutf8vctrswaldowithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Create an asynchronous task from sequential code. | async await |
Wait for the next value from a channel or stream. | awaitNext |
An object representing a sequence of future values. | channel channel.function is.channel |
Combine several channels into one. | combine |
Toggle single-step debugging for a coroutine. | debugAsync |
Asynchronous pause. | delay |
Query / display coroutine properties and state. | format.coroutine summary.async summary.coroutine summary.generator summary.stream |
Collect iterator / channel items into a vector. | as.promise.channel collect collector gather |
Create an iterator using sequential code. | gen yield yieldFrom |
Coroutine switch with delimited goto. | goto |
Draw a graph representation of a coroutine. | graphAsync |
Receive values from channels by callback. | nextThen subscribe |
Pausable functions. | pausables |
Execute a generator expression immediately, collecting yielded values. | run |
Create an asynchronous iterator by writing sequential code. | stream |