Execution context without daemon threads for futures
问题 I am having trouble with the JVM immediately exiting using various new applications I wrote which spawn threads through the Scala 2.10 Futures + Promises framework. It seems that at least with the default execution context, even if I'm using blocking, e.g. future { blocking { /* work */ }} no non-daemon thread is launched, and therefore the JVM thinks it can immediately quit. A stupid work around is to launch a dummy Thread instance which is just waiting, but then I also need to make sure