|
|
|
@ -146,7 +146,7 @@ bc:finalize()
|
|
|
|
bc:call("some_verb", "param_a_value", "param_b_value")
|
|
|
|
bc:call("some_verb", "param_a_value", "param_b_value")
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### `BaseControl:call_sync(verb, timeout, ...)`
|
|
|
|
### `BaseControl:call_sync([timeout], verb, ...)`
|
|
|
|
Call a verb **synchroneously**. All parameters following `verb` will be given
|
|
|
|
Call a verb **synchroneously**. All parameters following `verb` will be given
|
|
|
|
to the remote function. `call_sync` will return the remote function's return
|
|
|
|
to the remote function. `call_sync` will return the remote function's return
|
|
|
|
value. If timeout is not `nil` or `0`, `call_sync` will error upon
|
|
|
|
value. If timeout is not `nil` or `0`, `call_sync` will error upon
|
|
|
|
@ -161,7 +161,7 @@ end)
|
|
|
|
bc:finalize()
|
|
|
|
bc:finalize()
|
|
|
|
|
|
|
|
|
|
|
|
-- This call can either happen locally or on another node
|
|
|
|
-- This call can either happen locally or on another node
|
|
|
|
local res = bc:call_sync("stupid_add", nil, 12, 34)
|
|
|
|
local res = bc:call_sync("stupid_add", 12, 34)
|
|
|
|
print("12 + 34 = "..res)
|
|
|
|
print("12 + 34 = "..res)
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|