I saw an example here:
val fut = Future { ... // my body function } // my body function starts here fut onComplete { ... // my callback }
Looks like I may add the callback after the completion of my body function. Is it still invoked ? Anyway, I would prefer to add callbacks to a future before my function starts running. Does it make sense ? How can I do that ?