How to find find Future implementation in scala.concurrent?

I am trying to understand what exactly happens, when I call

val f = scala.concurrent.Future {... // my body function }

The code of object Future defines apply methods as follows:

def apply[T](body: =>T)(implicit execctx: ExecutionContext): Future[T] =
   impl.Future(body)

Unfortunately I do not see where the impl is defined in the code (and what it exactly does). My question is where the impl is defined.

Answers


impl is just a package from which Future object borrows implementation class.

Since Future object lives in the same concurrent package it could address impl package effortlessly (no explicit imports required)


Need Your Help

Viewing, building & debugging Borland C++ Builder project in Visual Studio 2010

visual-studio-2010 c++builder c++builder-2006

I would like to use VC2010 to handle a BCB 2006 project I have. I do not want to convert the code to VC since much UI will need to be ported. I just want to be able to view build & debug from V...

jQuery, how to capture when text input has changed as a result of another event

javascript jquery

I have a text input that is updated as a result of a button event. I would like to detect when the value in the text input has changed. See the example below:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.