F0Xde
0657c91f0f
Allow catching of exceptions in chained runnables
...
The user can handle exceptions of a specified type occurring in a chained
runnable by calling `executeCatching` and optionally passing a handler
function.
This is needed needed in order to gracefully stop the execution of a
runnable chain without the exception being caught by Bukkit and
resulting in it being logged as uncaught, while also allowing further
handling of the exception.
2020-10-17 14:02:13 +02:00
bluefireoly
413c587e29
Improved ChainableRunnables
2020-10-12 18:12:05 +02:00
bluefireoly
25d4b71031
Holders are singletons
2020-10-12 17:37:17 +02:00
bluefireoly
29bd82803d
Eliminated plugin and kSpigot parameters
2020-10-12 17:01:01 +02:00
bluefireoly
66a03095b3
Lazy update
2020-09-27 00:43:32 +02:00
bluefireoly
6e5973498c
Update KSpigotRunnables.kt
2020-09-15 17:06:42 +02:00
bluefireoly
9846e8098c
Create ChainableRunnables.kt
2020-09-15 17:06:37 +02:00
bluefireoly
bffe6e026c
Update KSpigotRunnables.kt
2020-09-14 19:00:22 +02:00
bluefireoly
ebe2185607
Fixed safe runnable problem
2020-09-14 17:31:44 +02:00
bluefireoly
eb6313b452
Added counterToZero
2020-09-13 15:10:51 +02:00
bluefireoly
594455e3f9
Fixed problem in KSpigotRunnable.kt
2020-09-05 19:48:46 +02:00
bluefireoly
d93cda5dae
Updated runnable api
2020-08-29 19:12:25 +02:00
bluefireoly
f46fa5d658
General update
2020-08-27 20:51:46 +02:00
bluefireoly
f9b0167f82
Made runnables safer
2020-07-15 14:55:36 +02:00
bluefireoly
eab07bbd08
Made sync = true the default
2020-07-06 00:57:52 +02:00
bluefireoly
91eef11f21
Update KRunnables.kt
2020-07-06 00:55:03 +02:00
bluefireoly
6cb45aa641
cancel() is now supported outside of the default logic
2020-07-06 00:48:12 +02:00
bluefireoly
dcf479a05e
Create KRunnables.kt
2020-07-06 00:44:01 +02:00