I'm spawning an isolate (first isolate) from main thread to make network calls to the backend to get a large amount of data and process them into local DB.
During this process when I spawn another isolate (second isolate) from same main thread to carry out another task. When the second isolate sends data to main thread through the SendPort once the task is completed it stops the tasks carried out by the first isolate. Any help please?
Is it something to do with receive port since both the isolates are spawned from main thread and both will have a port to the main thread to share memory, does closing any of the port causes other ports also to be closed?