Returns a new channel that passes only elements matching the predicate. @param predicate the filter function @return a new filtered channel @since 6.0.0
(Predicate<T> predicate)
| 134 | * @since 6.0.0 |
| 135 | */ |
| 136 | default AsyncChannel<T> filter(Predicate<T> predicate) { |
| 137 | AsyncChannel<T> out = create(getCapacity()); |
| 138 | AsyncSupport.getExecutor().execute(() -> { |
| 139 | try { |
no outgoing calls