Permalink
Browse files

v3.6.0: Add .abortChain() API

  • Loading branch information...
aikar committed Apr 30, 2017
1 parent 203c699 commit d6000b6fa9fb8d178c094cb05a5b3415449c0812
Showing with 1,319 additions and 1,263 deletions.
  1. +14 −2 core/src/main/java/co/aikar/taskchain/TaskChain.java
  2. +1 −1 docs/allclasses-frame.html
  3. +1 −1 docs/allclasses-noframe.html
  4. +2 −2 docs/co/aikar/taskchain/AbortChainException.html
  5. +2 −2 docs/co/aikar/taskchain/AsyncQueue.html
  6. +2 −2 docs/co/aikar/taskchain/GameInterface.html
  7. +166 −144 docs/co/aikar/taskchain/TaskChain.html
  8. +2 −2 docs/co/aikar/taskchain/TaskChainAbortAction.html
  9. +2 −2 docs/co/aikar/taskchain/TaskChainAsyncQueue.html
  10. +2 −2 docs/co/aikar/taskchain/TaskChainDataWrappers.Data2.html
  11. +2 −2 docs/co/aikar/taskchain/TaskChainDataWrappers.Data3.html
  12. +2 −2 docs/co/aikar/taskchain/TaskChainDataWrappers.Data4.html
  13. +2 −2 docs/co/aikar/taskchain/TaskChainDataWrappers.Data5.html
  14. +2 −2 docs/co/aikar/taskchain/TaskChainDataWrappers.Data6.html
  15. +2 −2 docs/co/aikar/taskchain/TaskChainDataWrappers.html
  16. +2 −2 docs/co/aikar/taskchain/TaskChainExample.html
  17. +2 −2 docs/co/aikar/taskchain/TaskChainFactory.html
  18. +2 −2 docs/co/aikar/taskchain/TaskChainNullAction.html
  19. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.AsyncExecutingFirstTask.html
  20. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.AsyncExecutingGenericTask.html
  21. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.AsyncExecutingTask.html
  22. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.FirstTask.html
  23. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.FutureFirstTask.html
  24. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.FutureGenericTask.html
  25. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.FutureTask.html
  26. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.GenericTask.html
  27. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.LastTask.html
  28. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.Task.html
  29. +2 −2 docs/co/aikar/taskchain/TaskChainTasks.html
  30. +2 −2 docs/co/aikar/taskchain/class-use/AbortChainException.html
  31. +2 −2 docs/co/aikar/taskchain/class-use/AsyncQueue.html
  32. +2 −2 docs/co/aikar/taskchain/class-use/GameInterface.html
  33. +72 −66 docs/co/aikar/taskchain/class-use/TaskChain.html
  34. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainAbortAction.html
  35. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainAsyncQueue.html
  36. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainDataWrappers.Data2.html
  37. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainDataWrappers.Data3.html
  38. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainDataWrappers.Data4.html
  39. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainDataWrappers.Data5.html
  40. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainDataWrappers.Data6.html
  41. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainDataWrappers.html
  42. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainExample.html
  43. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainFactory.html
  44. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainNullAction.html
  45. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.AsyncExecutingFirstTask.html
  46. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.AsyncExecutingGenericTask.html
  47. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.AsyncExecutingTask.html
  48. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.FirstTask.html
  49. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.FutureFirstTask.html
  50. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.FutureGenericTask.html
  51. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.FutureTask.html
  52. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.GenericTask.html
  53. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.LastTask.html
  54. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.Task.html
  55. +2 −2 docs/co/aikar/taskchain/class-use/TaskChainTasks.html
  56. +1 −1 docs/co/aikar/taskchain/package-frame.html
  57. +2 −2 docs/co/aikar/taskchain/package-summary.html
  58. +2 −2 docs/co/aikar/taskchain/package-tree.html
  59. +2 −2 docs/co/aikar/taskchain/package-use.html
  60. +2 −2 docs/constant-values.html
  61. +2 −2 docs/deprecated-list.html
  62. +2 −2 docs/help-doc.html
  63. +6 −2 docs/index-all.html
  64. +1 −1 docs/index.html
  65. +2 −2 docs/overview-tree.html
  66. +2 −2 docs/serialized-form.html
  67. +941 −929 docs/src-html/co/aikar/taskchain/TaskChain.html
@@ -314,6 +314,18 @@ public boolean hasTaskData(String key) {
// </editor-fold>
// <editor-fold desc="// API Methods - Abort">
/**
* Aborts the chain once this step is reached. This is primarily useful when you are
* dynamically building the chains steps (such as .configure()) and want to conditionally stop the
* chain from proceeding.
*
* @return Chain
*/
public TaskChain<?> abortChain() {
return current(TaskChain::abort);
}
/**
* Checks if the previous task return was null.
*
@@ -1127,7 +1139,7 @@ private void handleError(Throwable throwable, Task<?, ?> task) {
}
}
private void abortChain() {
private void abortExecutingChain() {
this.previous = null;
this.chainQueue.clear();
this.done(false);
@@ -1240,7 +1252,7 @@ private void run() {
*/
private synchronized void abort() {
this.aborted = true;
this.chain.abortChain();
this.chain.abortExecutingChain();
}
/**
@@ -4,7 +4,7 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (TaskChain (Core) 3.5.0 API)</title>
<title>All Classes (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
@@ -4,7 +4,7 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (TaskChain (Core) 3.5.0 API)</title>
<title>All Classes (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AbortChainException (TaskChain (Core) 3.5.0 API)</title>
<title>AbortChainException (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AbortChainException (TaskChain (Core) 3.5.0 API)";
parent.document.title="AbortChainException (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AsyncQueue (TaskChain (Core) 3.5.0 API)</title>
<title>AsyncQueue (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AsyncQueue (TaskChain (Core) 3.5.0 API)";
parent.document.title="AsyncQueue (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GameInterface (TaskChain (Core) 3.5.0 API)</title>
<title>GameInterface (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="GameInterface (TaskChain (Core) 3.5.0 API)";
parent.document.title="GameInterface (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainAbortAction (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainAbortAction (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainAbortAction (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainAbortAction (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainAsyncQueue (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainAsyncQueue (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainAsyncQueue (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainAsyncQueue (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainDataWrappers.Data2 (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainDataWrappers.Data2 (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainDataWrappers.Data2 (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainDataWrappers.Data2 (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainDataWrappers.Data3 (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainDataWrappers.Data3 (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainDataWrappers.Data3 (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainDataWrappers.Data3 (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainDataWrappers.Data4 (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainDataWrappers.Data4 (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainDataWrappers.Data4 (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainDataWrappers.Data4 (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainDataWrappers.Data5 (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainDataWrappers.Data5 (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainDataWrappers.Data5 (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainDataWrappers.Data5 (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainDataWrappers.Data6 (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainDataWrappers.Data6 (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainDataWrappers.Data6 (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainDataWrappers.Data6 (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainDataWrappers (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainDataWrappers (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainDataWrappers (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainDataWrappers (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainExample (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainExample (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainExample (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainExample (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainFactory (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainFactory (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainFactory (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainFactory (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainNullAction (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainNullAction (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainNullAction (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainNullAction (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainTasks.AsyncExecutingFirstTask (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainTasks.AsyncExecutingFirstTask (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainTasks.AsyncExecutingFirstTask (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainTasks.AsyncExecutingFirstTask (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainTasks.AsyncExecutingGenericTask (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainTasks.AsyncExecutingGenericTask (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainTasks.AsyncExecutingGenericTask (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainTasks.AsyncExecutingGenericTask (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainTasks.AsyncExecutingTask (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainTasks.AsyncExecutingTask (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainTasks.AsyncExecutingTask (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainTasks.AsyncExecutingTask (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainTasks.FirstTask (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainTasks.FirstTask (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainTasks.FirstTask (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainTasks.FirstTask (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
@@ -4,15 +4,15 @@
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TaskChainTasks.FutureFirstTask (TaskChain (Core) 3.5.0 API)</title>
<title>TaskChainTasks.FutureFirstTask (TaskChain (Core) 3.6.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TaskChainTasks.FutureFirstTask (TaskChain (Core) 3.5.0 API)";
parent.document.title="TaskChainTasks.FutureFirstTask (TaskChain (Core) 3.6.0 API)";
}
}
catch(err) {
Oops, something went wrong.

0 comments on commit d6000b6

Please sign in to comment.