More documentation.

This commit is contained in:
Jindra Petřík
2024-08-06 06:17:00 +02:00
parent 68954e714d
commit b57e38e387
286 changed files with 11752 additions and 3576 deletions

View File

@@ -19,20 +19,36 @@ package com.jpexs.decompiler.flash;
import java.io.IOException;
/**
*
* Task that can be retried on error.
* @author JPEXS
*/
public class RetryTask {
/**
* Runnable that can throw IOException.
*/
private final RunnableIOEx r;
/**
* Handler for retrying.
*/
private final AbortRetryIgnoreHandler handler;
/**
* Constructs a new RetryTask.
* @param r Runnable that can throw IOException
* @param handler Handler for retrying
*/
public RetryTask(RunnableIOEx r, AbortRetryIgnoreHandler handler) {
this.r = r;
this.handler = handler;
}
/**
* Runs the task.
* @throws IOException
* @throws InterruptedException
*/
public void run() throws IOException, InterruptedException {
boolean retry;
do {