Future < Unit > function ( VoidFunction0 arg0 ) { return Future ( ( ) -> { arg0 . apply ( ) ; return Unit . Instance ; } ) ; }
allows for easy creation of asynchronous computations that will be executed in the future . the purpose is to allow the user to invoke a side-effecting function that may succeed/fail but has now return type . e.g. deleting something from a database may not have an interesting return type . one is only interested of the outcome , success / failure . the method relays the execution to future #apply throwablefunction0 . best used in conjunction with statically importing this method . import static javascalautils.concurrent.futurecompanion.future ; future < unit > t = future - > database.delete someid ; ; concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder