MCPcopy Index your code
hub / github.com/apache/groovy / split

Method split

src/main/java/groovy/concurrent/AsyncChannel.java:221–221  ·  view source on GitHub ↗

Returns two new channels: elements matching the predicate go to the first, non-matching to the second. Both are closed when this channel is exhausted. @param predicate the split condition @return a list of two channels: [matching, non-matching] @since 6.0.0

(Predicate<T> predicate)

Source from the content-addressed store, hash-verified

219 * @since 6.0.0
220 */
221 default List<AsyncChannel<T>> split(Predicate<T> predicate) {
222 AsyncChannel<T> trueOut = create(getCapacity());
223 AsyncChannel<T> falseOut = create(getCapacity());
224 AsyncSupport.getExecutor().execute(() -> {

Callers 15

doForkCommandLineListMethod · 0.65
buildClassLoaderForMethod · 0.65
isValidPackagePathMethod · 0.65
wcMethod · 0.65
executeMethod · 0.65
nextDomainMethod · 0.65
loadStatementVarsMethod · 0.65
checkSyntaxMethod · 0.65
doExceptionMessageMethod · 0.65
errorIndexMethod · 0.65
getClassesForPackageMethod · 0.65
resolveExcludesMethod · 0.65

Calls

no outgoing calls