Releases: Shynixn/MCCoroutine
Releases · Shynixn/MCCoroutine
Release 2.1.0
Release 2.0.1
Developer Notes
- See the 2.0.0 release below.
Bugs/Issues
- #58 Fixed mccoroutine-bungeecord-core.jar contains Kotlin libraries.
Release 2.0.0
Developer Notes
This change is a major version change and contains breaking changes. Please follow the upgrade guide below.
Changes
- #52 Changed the way how exceptions are handled. It is now possible to fully control any coroutine exceptions using the new event
MCCoroutineExceptionEvent
. The details are explained on the new wiki page. - #52 CoroutineCancellations are no longer being logged by MCCoroutine because people were confused why this exception is printed in the first place. You can still catch it using the new
MCCoroutineExceptionEvent
. - #50 Introcuded support for BungeeCord and Waterfall. See the new wiki for details.
- #50 Removed any implementation details from the
mccoroutine-framework-api
projects. - #50 Removed
plugin.launchAsync
from MCCoroutine. This function was an idea to directly allow async dispatches. However, after investigating open source projects, this function was almost always used incorrectly and caused to return on unknown threads. Please see the upgrade guide below, how to fix it. - #50 Moved classes to different packages.
- #50
plugin.launch
behaves now exactly the same asplugin.scope.launch
. - #50 Added
start
parameter toplugin.launch
Upgrading from 1.x.x to 2.x.x
- Replace
plugin.launchAsync
// 1.x.x
fun foo(){
plugin.launchAsync {
// Code A
}
}
// 2.x.x
fun foo(){
plugin.launch {
withContext(Dispatchers.IO) {
// Code A
}
}
}
- Fix the import changes:
com.github.shynixn.mccoroutine.*
has become either:
com.github.shynixn.mccoroutine.bukkit.*
com.github.shynixn.mccoroutine.sponge.*
com.github.shynixn.mccoroutine.bungeecord.*
Release 1.6.0
Changes
- #51 Added support to call suspending events consecutively. Use the new overload
plugin.server.pluginManager.callSuspendingEvent(event, plugin, EventExecutionType.Consecutive)
. The default behaviour (as in previous versions) isEventExecutionType.Concurrent
.
Release 1.5.0
Bugs/Issues
- #38 Fixed scheduler hack was always enabled when not using SuspendingJavaPlugin.
Release 1.4.0
Changes
- #33 Added support for suspend keyword in the
Plugin
main class. Use the new type calledSuspendingJavaPlugin
. For more details, please consult the new wiki.
Release 1.2.0
Bugs/Issues
- #28 Fixed maven release did not contain correct javadoc and sources files.
Release 1.1.2
This release was automatically created by Github Actions. Please wait until the author manually sets the patchnotes for this release.
Release 1.1.0
MCCoroutine 0.0.7
Changes
- #19 Added suspending tab completer.