The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

mizu

Single-producer single-consumer channels for R: a bounded ring buffer implemented in C, with optional timeouts and sentinel return values for full, timeout, and closed states. The transport is in-process.

Installation

install.packages("mizu")

Usage

library(mizu)

ch <- mizu_inproc_channel(2)

mizu_send(ch, "a")
mizu_send(ch, 42)
mizu_send(ch, "b")          # full: returns the mizu_full sentinel

mizu_recv(ch)
#> [1] "a"
mizu_recv(ch)
#> [1] 42
mizu_recv(ch, timeout = 0)  # empty: do not wait
#> <mizu_timeout>

mizu_inproc_close(ch)

License

MIT

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.