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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -