Implement async event tasks.

Events will now only be handled by an async executor if necessary. This should improve performance for lightweight listeners.
This commit is contained in:
Seppe Volkaerts
2020-11-05 23:42:03 +01:00
parent 58294595f3
commit b04d5de141
13 changed files with 1016 additions and 240 deletions

View File

@@ -69,7 +69,6 @@ dependencies {
runtimeOnly 'com.lmax:disruptor:3.4.2' // Async loggers
implementation 'it.unimi.dsi:fastutil:8.4.1'
implementation 'net.kyori:event-method-asm:4.0.0-SNAPSHOT'
implementation 'net.kyori:adventure-nbt:4.0.0-SNAPSHOT'
implementation 'org.asynchttpclient:async-http-client:2.12.1'
@@ -78,6 +77,8 @@ dependencies {
implementation 'com.electronwill.night-config:toml:3.6.3'
implementation 'org.lanternpowered:lmbda:2.0.0-SNAPSHOT'
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.1.2'
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
@@ -129,3 +130,7 @@ shadowJar {
artifacts {
archives shadowJar
}
test {
useJUnitPlatform()
}