sendRequest<T extends R> method

Future<T?> sendRequest<T extends R>(
  1. List args
)

Implementation

Future<T?> sendRequest<T extends R>(List args) {
  var msgID = ++_msgIDCounter;
  var completer = _waitingResponse[msgID] = Completer<T?>();

  var msg = SharedObjectIsolateRequestMessage(msgID, isolateSendPort, args);

  serverPort.send(msg);

  return completer.future;
}