In C# you can write:
var alphaTask = Task.Factory.StartNew(() =>
{
return someWork(n);
});
// ... do some other work, and later get the result from the task
var res = alphaTask.Result;
How would this simple construction look like in Scala?
Thank you.