- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 122 for closures (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
architecture/standards/0003-avoid-introducing-Groovy-types-to-public-api.md
Existing Groovy methods will not be removed immediately. ## Consequences * If we would have used `Closure`, we must instead use `Action<T>`, `Spec<T>`, `Callable<T>`, or `Transformer<OUT, IN>`. * We need to ensure all APIs that are exposed in the Groovy DSL go through runtime decoration. Runtime decoration mixes in methods that use Groovy Closures to maintain consistent behavior in Groovy DSL.
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 12:39:41 GMT 2026 - 1.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java
final String script = "def sum = 0; for (int i = 1; i <= n; i++) { sum += i }; return sum"; assertEquals(15, groovyEngine.evaluate(script, params)); } /** * Test that closures work */ @Test public void test_evaluate_closures() { final Map<String, Object> params = new HashMap<>(); final String script = "def multiply = { x, y -> x * y }; return multiply(6, 7)";Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 06:03:38 GMT 2026 - 29.1K bytes - Click Count (0) -
doc/go_spec.html
</p> <pre> f := func(x, y int) int { return x + y } func(ch chan int) { ch <- ACK }(replyChan) </pre> <p> Function literals are <i>closures</i>: they may refer to variables declared in a surrounding function. Those variables are then shared between the surrounding function and the function literal, and they survive as long as they are accessible. </p>
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Apr 01 23:39:18 GMT 2026 - 287.8K bytes - Click Count (1) -
src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java
handle.sendrecv(rpc); if (rpc.retval != 0) { throw new SmbException(rpc.retval, false); } } /** * Closes this SAM alias handle. * * @throws IOException if an I/O error occurs during handle closure */ public void close() throws IOException { final MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this); handle.sendrecv(rpc);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
done = true; return super.getFile(); } /** * Closes the stream and deletes the temporary file if it was not retrieved. * If an error occurs during file deletion, it is logged but not thrown to avoid * masking exceptions from the main operation. * * @throws IOException if an I/O error occurs during stream closure */ @Override public void close() throws IOException { try {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 3.9K bytes - Click Count (0) -
internal/http/listener.go
ctxCanceler context.CancelFunc } // start - starts separate goroutine for each TCP listener. A valid new connection is passed to httpListener.acceptCh. func (listener *httpListener) start() { // Closure to handle listener until httpListener.ctxDoneCh channel is closed. handleListener := func(idx int, ln net.Listener) { for { conn, err := ln.Accept() select { case listener.acceptCh <- acceptResult{conn, err, idx}:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.8K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/BuildableDOMCategory.groovy
} public static void setChildren(Node element, Closure cl) { while (element.hasChildNodes()) { element.removeChild(element.getFirstChild()) } leftShift(element, cl) } public static def leftShift(Node parent, Closure cl) { DomBuilder builder = new DomBuilder(parent) cl.delegate = builder cl.call()Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Aug 11 15:32:19 GMT 2022 - 2.8K bytes - Click Count (0) -
build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/SnippetsTask.groovy
/** * Repeatedly match the pattern to the string, calling the closure with the * matchers each time there is a match. If there are characters that don't * match then blow up. If the closure takes two parameters then the second * one is "is this the last match?". */ protected parse(String location, String s, String pattern, Closure c) { if (s == null) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 20 10:08:26 GMT 2021 - 17.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
// Using a SmbComClose instance triggers early return without DFS/session work SmbComClose closeReq = mock(SmbComClose.class); SmbResourceLocator res = c.ensureDFSResolved(loc, closeReq); assertSame(loc, res); // No connect attempts expected verify(c, never()).connectWrapException(any()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Closer.java
* <p>An exception that is suppressed is added to the exception that <i>will</i> be thrown using * {@code Throwable.addSuppressed(Throwable)}. * * @author Colin Decker * @since 14.0 */ // Coffee's for {@link Closer closers} only. @J2ktIncompatible @GwtIncompatible public final class Closer implements Closeable { /** Creates a new {@link Closer}. */ public static Closer create() { return new Closer(SUPPRESSING_SUPPRESSOR); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0)