mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Adds a way to cancel a blocking rpc call (#94)
This commit is contained in:
committed by
Peter Johnson
parent
d6e8de21ef
commit
c0ce4270f0
@@ -151,6 +151,10 @@ bool GetRpcResult(bool blocking, unsigned int call_uid,
|
||||
result);
|
||||
}
|
||||
|
||||
void CancelBlockingRpcResult(unsigned int call_uid) {
|
||||
Storage::GetInstance().CancelBlockingRpcResult(call_uid);
|
||||
}
|
||||
|
||||
std::string PackRpcDefinition(const RpcDefinition& def) {
|
||||
WireEncoder enc(0x0300);
|
||||
enc.Write8(def.version);
|
||||
|
||||
Reference in New Issue
Block a user