Package co.paralleluniverse.strands
Class SuspendableUtils
- java.lang.Object
-
- co.paralleluniverse.strands.SuspendableUtils
-
public class SuspendableUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SuspendableUtils.VoidSuspendableCallable
-
Constructor Summary
Constructors Constructor Description SuspendableUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SuspendableRunnable
asSuspendable(java.lang.Runnable runnable)
static <V> SuspendableCallable<V>
asSuspendable(java.util.concurrent.Callable<V> callable)
static <V,E extends java.lang.Exception>
SuspendableCallable<V>asSuspendableCallable(CheckedSuspendableCallable<V,E> callable)
static SuspendableCallable<java.lang.Void>
runnableToCallable(SuspendableRunnable runnable)
-
-
-
Method Detail
-
runnableToCallable
public static SuspendableCallable<java.lang.Void> runnableToCallable(SuspendableRunnable runnable)
-
asSuspendable
public static SuspendableRunnable asSuspendable(java.lang.Runnable runnable)
-
asSuspendable
public static <V> SuspendableCallable<V> asSuspendable(java.util.concurrent.Callable<V> callable)
-
asSuspendableCallable
public static <V,E extends java.lang.Exception> SuspendableCallable<V> asSuspendableCallable(CheckedSuspendableCallable<V,E> callable)
-
-