I asked same question with my colleague and he told me that we can handle it with by calling asynchronous method using Delegates. Please find below details for your reference.
A useful feature of delegates is the ability to execute a method asynchronously. That is, through a delegate, you can begin invocation of a method and then return immediately while the delegate executes its method in a separate thread. Your page execution does not need to wait for that method to complete.
For more information please refer below link.
Calling a method in C# asynchronously using delegates[
^]