infinite concurrency
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-22 19:28:27 +02:00
parent a4c9bd854e
commit a212aa300c
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -24,10 +24,10 @@ fun Application.module(testing: Boolean = false) {
val uploader = Uploader()
val processResults = ProcessResults()
environment.monitor.subscribe(ApplicationStarted) {
val job = GlobalScope.launch {
println("Starting benchmark")
startTime = Instant.now()
while (elapsed < targetTime) {
val job = GlobalScope.launch {
uploader.uploadData(currIter)
currIter += 1
currTimeStamp = Instant.now()