Closed sagnik-sanyal closed 4 months ago
Use Isolate.run
The problem with this approach is it is throwing error cant send from SendPort.send, do you have any sample where you use isolate for calculating list diff using isolate ?
Here's the error : Unhandled Exception: Invalid argument(s): Illegal argument in isolate message: object is unsendable - Library:'dart:async' Class: _Future@4048458 (see restrictions listed at SendPort.send()
documentation for more information)
you can't use Isolates if you have Futures, Streams, FileHandles, etc. in your List.
How to perform intensive calculations for diff util in an isolate ? @knaeckeKami