computeFileListEncryptionPromiseWithPorts function
Future<ReceivePort>
computeFileListEncryptionPromiseWithPorts(
- SendPort sendPort,
- FileListEncryptionPromise fileListEncryptionPromise
Implementation
Future<ReceivePort> computeFileListEncryptionPromiseWithPorts(
SendPort sendPort,
FileListEncryptionPromise fileListEncryptionPromise,
) async {
ReceivePort receivePort = ReceivePort();
await Isolate.spawn(
executeFileListEncryptionPromise,
[receivePort.sendPort, fileListEncryptionPromise.serialize()],
);
return receivePort;
}