Sorting based on Future Result
问题 I've trying to sort a list by a future boolean. I have a list of IDs and I need to query an external service to find out if there's contextual information behind them. The method I use to do this returns an optional future. By using the partition method I hoped to create two lists of IDs, one with contextual information and one without. The following answer on here provided a lot of help for this: Scala - sort based on Future result predicate I now have an rough, untested method that looks