scala - Benchmarking Futures issue with JMH -


def benchmark: data = {  val afuture = ae.dosomething(argument)  val bfuture = be.dosomething(argument)  val cfuture = ce.dosomething(argument)   val eventf = {          aresult <- afuture          bresult <- bfuture          cresult <- cfuture     } yield data(aresult, bresult, cresult)   await.result(eventf, 30.seconds) } 

this example of benchmark i'm trying run jmh. when try run this, benchmark times out regardless of wait time put in. i've tried altering rid of 'await.result' , use 'oncomplete' in situation gets stuck building jar , console outputs "nonlocalreturncontrol". there i'm missing? seems simple enough question there should somewhere, results pretty sparse.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -