send method

Future<R?> send(
  1. IsolateTask<T, R> task
)

Implementation

Future<R?> send(IsolateTask<T, R> task) {
  var completer = Completer<R?>();
  _completers[task.id] = completer;
  _isolatePort.send(task);
  return completer.future;
}