concurrency - How to find Future implementation in scala.concurrent? -


i trying understand happens, when call

 val f = scala.concurrent.future {... // body function } 

the code of object future defines apply methods follows:

 def apply[t](body: =>t)(implicit execctx: executioncontext): future[t] =    impl.future(body) 

unfortunately not see impl defined in code (and does). question impl defined.

impl package future object borrows implementation class.

enter image description here

since future object lives in same concurrent package address impl package effortlessly (no explicit imports required)


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -