You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement a feature where, if a download doesn’t start within a specified time, it should be canceled, and an error should be thrown. After reviewing various suggestions, I found that it can be achieved using a custom HttpDownloader. I've implemented the code as shown below, but it still doesn’t trigger any listener or status change.
Hi @PratikLahagora This is an interesting use case. Your code seems to be the correct solution. Once a connection times out it should throw an Exception that Fetch will catch and forward to your code. Were you able to logic the actual call and see if the exception was thrown. Here is an example of a customer downloader that will catch the exception and log it.
I want to implement a feature where, if a download doesn’t start within a specified time, it should be canceled, and an error should be thrown. After reviewing various suggestions, I found that it can be achieved using a custom HttpDownloader. I've implemented the code as shown below, but it still doesn’t trigger any listener or status change.
The text was updated successfully, but these errors were encountered: