mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-27 19:19:07 +00:00
Utils
This commit is contained in:
@@ -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(() -> {
|
||||
|
||||
Reference in New Issue
Block a user