Aborted called on a running task #1059
-
Is there a way to prevent aborted being called for a specific call? I want to wait until the function completes. I see this example: if (!res.aborted) { However, I need a way to respond to the user when the res is done or aborted. I see the request aborts in 3 seconds. I'm looking to increase timeout to like 4 seconds. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If the peer disconnects, which can happen at any time, you technically have no way to respond. You can't prevent this. |
Beta Was this translation helpful? Give feedback.
-
"Aborted called on a running task" <- this caption is good. I understand what you mean. But there is no technical way to prevent this, you need to either let your running task complete and then discard it if aborted, or support prematurely breaking the running task. Either solution will work. |
Beta Was this translation helpful? Give feedback.
"Aborted called on a running task" <- this caption is good. I understand what you mean. But there is no technical way to prevent this, you need to either let your running task complete and then discard it if aborted, or support prematurely breaking the running task. Either solution will work.