Gary Sieling

Scala: infinite duration / timeout for Futures

For whatever reason, a lot of blog posts I’ve seen put timeouts on Futures, and it took me some time to find the “infinite” one.

If you want to do this, here is what you need:

import scala.concurrent.duration.Duration

val tasks = for (thread 
	
Exit mobile version