async filter

When the condition is an asynchronous operation, it adds a layer of complexity.