Is there a way to wait for the async operation in this code snippet and use its result as the predicate instead of always returning false?
return someList.createFiltered(function(item) {
var filter = false;
var promise = someOperationAsync();
promise.done(function(b) {
filter = b;
});
return filter;
});