9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 19:19:07 +00:00
This commit is contained in:
Daniel Mills
2021-07-07 05:35:57 -04:00
parent 9d7fcc4987
commit 60777e5714
4 changed files with 43 additions and 1 deletions

View File

@@ -54,6 +54,22 @@ public class J
return false;
}
public static void arun(Runnable a)
{
e.submit(() -> {
try
{
a.run();
}
catch(Throwable e)
{
System.out.println("Failed to run async task");
e.printStackTrace();
}
});
}
public static void a(Runnable a)
{
e.submit(() -> {