Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for closures (0.07 seconds)

  1. 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)
  2. 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)
  3. doc/go_spec.html

    </p>
    
    <pre>
    f := func(x, y int) int { return x + y }
    func(ch chan int) { ch &lt;- 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)
  4. android/guava/src/com/google/common/graph/Graphs.java

        // edges, so this traversal would require reusing the undirected AB edge.
        return false;
      }
    
      /**
       * Returns the transitive closure of {@code graph}. The transitive closure of a graph {@code G} is
       * a graph {@code T} that is a supergraph of {@code G}, augmented by, for each pair of nodes A and
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/curl/CurlResponse.java

         */
        private Exception contentException;
    
        /**
         * The headers of the response.
         */
        private Map<String, List<String>> headers;
    
        /**
         * Closes the content cache if it is not null.
         *
         * @throws IOException if an I/O error occurs.
         */
        @Override
        public void close() throws IOException {
            if (contentCache != null) {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/request-files.md

        * E.g., `await myfile.seek(0)` would go to the start of the file.
        * This is especially useful if you run `await myfile.read()` once and then need to read the contents again.
    * `close()`: Closes the file.
    
    As all these methods are `async` methods, you need to "await" them.
    
    For example, inside of an `async` *path operation function* you can get the contents with:
    
    ```Python
    contents = await myfile.read()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                        throw e;
                    }
                });
            } catch (final ExecutionException e) {
                throw (RuntimeException) e.getCause();
            }
        }
    
        /**
         * Closes all cached GroovyClassLoaders and clears the script cache.
         * Called by the DI container on shutdown.
         */
        @PreDestroy
        public void close() {
            scriptCache.invalidateAll();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  8. src/bytes/bytes.go

    // punctuation properly. Use golang.org/x/text/cases instead.
    func Title(s []byte) []byte {
    	// Use a closure here to remember state.
    	// Hackish but effective. Depends on Map scanning in order and calling
    	// the closure once per rune.
    	prev := ' '
    	return Map(
    		func(r rune) rune {
    			if isSeparator(prev) {
    				prev = r
    				return unicode.ToTitle(r)
    			}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 12 17:56:55 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  9. docs/fr/docs/help-fastapi.md

    * Dans de nombreux cas, il est préférable de comprendre leur **problème sous‑jacent ou cas d'utilisation**, car il pourrait exister une meilleure façon de le résoudre que ce qu'ils essaient de faire.
    
    ### Demander la clôture { #ask-to-close }
    
    S'ils répondent, il y a de fortes chances que vous ayez résolu leur problème, bravo, **vous êtes un héros** ! 🦸
    
    * Maintenant, si cela a résolu leur problème, vous pouvez leur demander de :
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 14.6K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

       * default, OkHttp will perform lazy initialization upon the first usage of the cache.
       */
      @Throws(IOException::class)
      fun initialize() {
        cache.initialize()
      }
    
      /**
       * Closes the cache and deletes all of its stored values. This will delete all files in the cache
       * directory including files that weren't created by the cache.
       */
      @Throws(IOException::class)
      fun delete() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 26.9K bytes
    - Click Count (0)
Back to Top