@@ -33,8 +33,7 @@ bool RPCClient::AsyncSendVariable(const std::string& ep,
33
33
const framework::Scope* p_scope = &scope;
34
34
const auto ch = GetChannel (ep_val);
35
35
36
- framework::AsyncIO ([var_name_val, p_ctx, ep_val, p_scope, time_out, ch,
37
- this ] {
36
+ framework::Async ([var_name_val, p_ctx, ep_val, p_scope, time_out, ch, this ] {
38
37
auto * var = p_scope->FindVar (var_name_val);
39
38
40
39
::grpc::ByteBuffer req;
@@ -89,8 +88,7 @@ bool RPCClient::AsyncGetVariable(const std::string& ep,
89
88
const framework::Scope* p_scope = &scope;
90
89
const auto ch = GetChannel (ep_val);
91
90
92
- framework::AsyncIO ([var_name_val, ep_val, p_scope, p_ctx, time_out, ch,
93
- this ] {
91
+ framework::Async ([var_name_val, ep_val, p_scope, p_ctx, time_out, ch, this ] {
94
92
// prepare input
95
93
sendrecv::VariableMessage req;
96
94
req.set_varname (var_name_val);
@@ -133,8 +131,8 @@ bool RPCClient::AsyncPrefetchVariable(const std::string& ep,
133
131
const framework::Scope* p_scope = &scope;
134
132
const auto ch = GetChannel (ep_val);
135
133
136
- framework::AsyncIO ([in_var_name_val, out_var_name_val, ep_val, p_scope, p_ctx,
137
- time_out, ch, this ] {
134
+ framework::Async ([in_var_name_val, out_var_name_val, ep_val, p_scope, p_ctx,
135
+ time_out, ch, this ] {
138
136
auto * var = p_scope->FindVar (in_var_name_val);
139
137
140
138
::grpc::ByteBuffer req;
@@ -197,7 +195,7 @@ bool RPCClient::Wait() {
197
195
std::vector<std::future<void >> waits (req_count_);
198
196
199
197
for (int i = 0 ; i < req_count_; i++) {
200
- waits[i] = framework::AsyncIO ([i, &a, this ] { a[i] = Proceed (); });
198
+ waits[i] = framework::Async ([i, &a, this ] { a[i] = Proceed (); });
201
199
}
202
200
203
201
for (int i = 0 ; i < req_count_; i++) {
0 commit comments