Scala futures: what is the main thread expected to do while futures are executing?
问题 I (a newbie) am testing my concepts about Scala's Futures and the right patterns to use them. The premise Scala's futures are blocks of code to be executed asynchronously. So, the main thread creates one or more such futures, installs onSuccess() [note: equally applicable to OnComplete/onFailure] callbacks and proceeds. The callbacks are executed as and when the futures complete their runs. Presumably, these callbacks generate results which are supposed to be used by the main thread. The