Closed raboof closed 6 years ago
I was surprised in the following snippet the future timed out for me:
import com.scalakata._ import scala.concurrent._ import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global @instrument class Playground { val f = Future.successful(42) val mapped = f.map { case 33 => "asdf" case 42 => "fdsa" } Await.result(mapped, 4 seconds) }
hum I'm not sure what's the issue.
I was surprised in the following snippet the future timed out for me: