onData method
Implementation
void onData(MessageWithID<R> data) {
final (id, result) = data;
final completer = _tasks.remove(id);
if (completer == null) return;
completer.complete(result);
}
void onData(MessageWithID<R> data) {
final (id, result) = data;
final completer = _tasks.remove(id);
if (completer == null) return;
completer.complete(result);
}