Skip to contents

R6 class for relay configuration.

Details

See crew_relay().

See also

Other relay: crew_relay()

Active bindings

condition

Main condition variable.

from

Condition variable to relay from.

to

Condition variable to relay to.

Methods


Method validate()

Validate the object.

Usage

crew_class_relay$validate()

Returns

NULL (invisibly).


Method start()

Start the relay object.

Usage

crew_class_relay$start()

Returns

NULL (invisibly).


Method terminate()

Terminate the relay object.

Usage

crew_class_relay$terminate()

Returns

NULL (invisibly).


Method set_from()

Set the condition variable to relay from.

Usage

crew_class_relay$set_from(from)

Arguments

from

Condition variable to relay from.

Returns

NULL (invisibly).


Method set_to()

Set the condition variable to relay to.

Usage

crew_class_relay$set_to(to)

Arguments

to

Condition variable to relay to.

Returns

NULL (invisibly).


Method wait()

Wait until an unobserved task resolves or the timeout is reached. Use the throttle to determine the waiting time.

Usage

crew_class_relay$wait(throttle)

Arguments

throttle

A crew_throttle() object to orchestrate the wait time intervals.

Returns

NULL (invisibly).

Examples

crew_relay()
#> <crew_class_relay>
#>   Public:
#>     condition: active binding
#>     from: active binding
#>     set_from: function (from) 
#>     set_to: function (to) 
#>     start: function () 
#>     terminate: function () 
#>     to: active binding
#>     validate: function () 
#>     wait: function (throttle) 
#>   Private:
#>     .condition: NULL
#>     .from: NULL
#>     .to: NULL