- java.lang.Object
-
- com.alibaba.wisp.engine.WispTask
-
- All Implemented Interfaces:
Comparable<WispTask>
public class WispTask extends Object implements Comparable<WispTask>
WispTaskprovides high-level semantics of {link @Coroutine}Create
WispTaskviaWispEngine.dispatch(Runnable)(Callable, String)} to make blocking IO operation inWispTasks to become concurrent.The creator and a newly created
WispTaskwill automatically have parent-children relationship. When the child gets blocked on something, theWispCarrierwill try to execute parent first.A
WispTask's exit will wake up the waiting parent.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()ThreadgetThreadWrapper()-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface java.lang.Comparable
compareTo
-
-