Edgars
12/12/2019, 6:04 PMEdgars
12/12/2019, 6:05 PMEdgars
12/12/2019, 6:06 PMoverride fun solvePartTwo(): Long = runBlocking {
val xPeriod = async { findPeriod(Point3::x) }
val yPeriod = async { findPeriod(Point3::y) }
val zPeriod = async { findPeriod(Point3::z) }
println("Post launch")
lcm(xPeriod.await(), yPeriod.await(), zPeriod.await())
}
and this it the output from logs in the findPeriod
function (at entry and before exit)
property x started
property x done
property y started
property y done
property z started
property z done
Edgars
12/12/2019, 6:06 PMKroppeb
12/12/2019, 6:07 PMrunBlocking(Dispatcher.Default)
iircEdgars
12/12/2019, 6:10 PMEdgars
12/12/2019, 6:11 PMMichael de Kaste
12/13/2019, 7:31 AMEdgars
12/13/2019, 8:08 AM