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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -