call method

void call(
  1. SendPort sendport
)

Implementation

void call(SendPort sendport) {
  final ReceivePort receivePort = ReceivePort();
  sendport.send(receivePort.sendPort);
  receivePort.listen((message) {
    if (message is _WorkerExit) {
      receivePort.close();
      return;
    }

    entry(message, sendport.send);
  });
}