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.

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