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.

Usage

crew_class_relay$wait(seconds_timeout = 1000)

Arguments

seconds_timeout

Positive numeric of length 1, Number of seconds to wait before timing out.

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 (seconds_timeout = 1000) 
#>   Private:
#>     .condition: NULL
#>     .from: NULL
#>     .to: NULL