Detect if a response is available for a message
Arguments
- message_id
The message id
- worker_ids
Optional vector of worker ids. If
NULL
then all active workers are used (note that this may differ to the set of workers that the message was sent to!)- named
Logical, indicating if the return vector should be named
- controller
The controller to use. If not given (or
NULL
) we'll use the controller registered withrrq_default_controller_set()
.
Examples
obj <- rrq_controller("rrq:example")
id <- rrq_message_send("PING", controller = obj)
rrq_message_has_response(id, controller = obj)
#> exhaustible_umbrette
#> FALSE
rrq_message_get_response(id, timeout = 5, controller = obj)
#> $exhaustible_umbrette
#> [1] "PONG"
#>
rrq_message_has_response(id, controller = obj)
#> exhaustible_umbrette
#> TRUE