In this PR, The file slicing and encryption logic is moved into the async thread.
But at the cost of error handling. So, We may in future need to find a way to handle errors inside threads.
Maybe for handling the errors, We may want to take support for the channels ?
sender : would have error logic inside the new thread.
receiver : would handle errors back into main thread.
In this PR, The file slicing and encryption logic is moved into the async thread. But at the cost of error handling. So, We may in future need to find a way to handle errors inside threads.