use of suite.adt.Mutable in project suite by stupidsing.
the class RequestResponseMatcher method onResponseReceived.
public void onResponseReceived(int token, Bytes response) {
Pair<Mutable<Bytes>, Condition> pair = requests.get(token);
Mutable<Bytes> holder = pair.t0;
Condition condition = pair.t1;
condition.thenNotify(() -> holder.set(response));
}
Aggregations