Package: coro 1.1.0.9000
coro: 'Coroutines' for R
Provides 'coroutines' for R, a family of functions thatcan 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 freeiteration protocol defined in 'coro' and are compatible withiterators from the 'reticulate' package.
Authors:Lionel Henry [aut, cre],Posit Software, PBC [cph, fnd]
coro_1.1.0.9000.tar.gz
coro_1.1.0.9000.zip(r-4.6)coro_1.1.0.9000.zip(r-4.5)coro_1.1.0.9000.zip(r-4.4)
coro_1.1.0.9000.tgz(r-4.5-any)coro_1.1.0.9000.tgz(r-4.4-any)
coro_1.1.0.9000.tar.gz(r-4.6-any)coro_1.1.0.9000.tar.gz(r-4.5-any)
coro_1.1.0.9000.tgz(r-4.5-emscripten)
coro.pdf |coro.html✨
coro/json (API)
NEWS
| # Install 'coro' in R: |
| install.packages('coro', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/r-lib/coro/issues
Pkgdown/docs site:https://coro.r-lib.org
asynccoroutinesgeneratoriteratorpromisesreticulate
13.22 score 179 stars 72 packages 152 scripts 203k downloads 16 exports 1 dependencies
Last updated from:fd8fae6224. Checks:9 OK. Indexed: yes.
| Target | Result | Total time | Artifact |
|---|---|---|---|
| linux-devel-x86_64 | OK | 123 | |
| source / vignettes | OK | 184 | |
| linux-release-x86_64 | OK | 124 | |
| macos-release-arm64 | OK | 96 | |
| macos-oldrel-arm64 | OK | 159 | |
| windows-devel | OK | 87 | |
| windows-release | OK | 82 | |
| windows-oldrel | OK | 96 | |
| wasm-release | OK | 101 |
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 |
