Package: coro 1.1.0
coro: 'Coroutines' for R
Provides 'coroutines' for R, a family of functions that can be suspended and resumed later on. This includes 'async' functions (which await) and generators (which yield). 'Async' functions are based on the concurrency framework of the 'promises' package. Generators are based on a dependency free iteration protocol defined in 'coro' and are compatible with iterators from the 'reticulate' package.
Authors:
coro_1.1.0.tar.gz
coro_1.1.0.tar.gz(r-4.5-noble)coro_1.1.0.tar.gz(r-4.4-noble)
coro_1.1.0.tgz(r-4.4-emscripten)coro_1.1.0.tgz(r-4.3-emscripten)
coro.pdf |coro.html✨
coro/json (API)
NEWS
# Install 'coro' in R: |
install.packages('coro', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/r-lib/coro/issues
Last updated 18 days agofrom:d1096e698f. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 06 2024 |
R-4.5-linux | OK | Nov 06 2024 |
Exports:as_iteratorasyncasync_collectasync_generatorasync_opsasync_sleepawaitawait_eachcollectcoro_debugexhaustedgengeneratoris_exhaustedloopyield
Dependencies:rlang
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Transform an object to an iterator | as_iterator as_iterator.default |
Make an async function | async await |
Collect elements of an asynchronous iterator | async_collect |
Construct an async generator | async_generator await_each |
Sleep asynchronously | async_sleep |
Iterate over iterator functions | collect loop |
Debug a generator or async function | coro_debug |
Create a generator function | gen generator |
Iterator protocol | exhausted is_exhausted iterator |
Yield a value from a generator | yield |