%~>% | R Documentation |
Forwards signals from one 'conditionVariable' to another.
cv %~>% cv2
cv |
a 'conditionVariable' object, from which to forward the signal. |
cv2 |
a 'conditionVariable' object, to which the signal is forwarded. |
The condition value of cv
is initially reset to zero when this operator
returns. Only one forwarder can be active on a cv
at any given time, and
assigning a new forwarding target cancels any currently existing forwarding.
Changes in the condition value of cv
are forwarded to cv2
, but only on
each occassion cv
is signalled. This means that waiting on cv
will cause
a temporary divergence between the actual condition value of cv
and that
recorded at cv2
, until the next time cv
is signalled.
Invisibly, cv2
.
cva <- cv(); cvb <- cv(); cv1 <- cv(); cv2 <- cv()
cva %~>% cv1 %~>% cv2
cvb %~>% cv2
cv_signal(cva)
cv_signal(cvb)
cv_value(cv1)
cv_value(cv2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.