Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 502 for mutation (0.17 seconds)

  1. internal/dsync/drwmutex_test.go

    package dsync
    
    import (
    	"context"
    	"fmt"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    const (
    	id     = "1234-5678"
    	source = "main.go"
    )
    
    func testSimpleWriteLock(t *testing.T, duration time.Duration) (locked bool) {
    	drwm1 := NewDRWMutex(ds, "simplelock")
    	ctx1, cancel1 := context.WithCancel(t.Context())
    	if !drwm1.GetRLock(ctx1, cancel1, id, source, Options{Timeout: time.Second}) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt

    import assertk.assertions.isTrue
    import java.net.InetAddress
    import java.net.ServerSocket
    import java.net.Socket
    import java.util.concurrent.TimeUnit
    import kotlin.time.Duration.Companion.milliseconds
    import kotlin.time.Duration.Companion.nanoseconds
    import okio.buffer
    import okio.source
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.assertThrows
    
    class UtilTest {
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3K bytes
    - Click Count (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateInitPluginTemplateVersionFile.kt

                Charsets.ISO_8859_1, "\n"
            )
        }
    
        private
        fun findLatest(name: String, notation: String, dest: Properties) {
            val libDependencies = arrayOf(project.dependencies.create(notation))
            @Suppress("SpreadOperator")
            val templateVersionConfiguration = project.configurations.detachedConfiguration(*libDependencies)
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Nov 24 20:45:41 GMT 2025
    - 5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            } catch (Exception e) {
                // Expected
            }
            long duration = System.currentTimeMillis() - startTime;
    
            // Test should complete in under 1 second (much less than the original 25+ seconds)
            assertTrue("Test should complete quickly (duration: " + duration + "ms)", duration < 1000);
        }
    
        // Fast mock implementations to minimize overhead
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  5. internal/config/api/api.go

    	TransitionWorkers           int           `json:"transition_workers"`
    	StaleUploadsCleanupInterval time.Duration `json:"stale_uploads_cleanup_interval"`
    	StaleUploadsExpiry          time.Duration `json:"stale_uploads_expiry"`
    	DeleteCleanupInterval       time.Duration `json:"delete_cleanup_interval"`
    	EnableODirect               bool          `json:"enable_odirect"`
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 11.5K bytes
    - Click Count (1)
  6. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            rateLimiter = new AuthenticationRateLimiter(3, // max attempts per account
                    5, // max attempts per IP
                    20, // max global attempts per minute
                    Duration.ofSeconds(2), // short lockout for testing
                    Duration.ofMinutes(1) // cleanup interval
            );
        }
    
        @AfterEach
        public void tearDown() {
            if (rateLimiter != null) {
                rateLimiter.close();
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  7. internal/lsync/lrwmutex.go

    }
    
    // GetLock tries to get a write lock on lm before the timeout occurs.
    func (lm *LRWMutex) GetLock(ctx context.Context, id string, source string, timeout time.Duration) (locked bool) {
    	const isWriteLock = true
    	return lm.lockLoop(ctx, id, source, timeout, isWriteLock)
    }
    
    // RLock holds a read lock on lm.
    //
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * @since 33.4.0 (but since 28.0 in the JRE flavor)
       */
      @J2ktIncompatible
      @GwtIncompatible // java.time.Duration
      @IgnoreJRERequirement // Users will use this only if they're already using Duration.
      public static ScheduledExecutorService getExitingScheduledExecutorService(
          ScheduledThreadPoolExecutor executor, Duration terminationTimeout) {
        return getExitingScheduledExecutorService(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/RateLimitHelper.java

        }
    
        /**
         * Block an IP address for the specified duration.
         * Note: The duration is ignored as the cache uses the configured block duration.
         * @param ip the IP address to block
         * @param durationMs the duration in milliseconds (ignored, uses configured value)
         */
        public void blockIp(final String ip, final long durationMs) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. internal/config/heal/help.go

    			Optional:    true,
    			Type:        "on|off",
    		},
    		config.HelpKV{
    			Key:         Sleep,
    			Description: `maximum sleep duration between objects to slow down heal operation` + defaultHelpPostfix(Sleep),
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         IOCount,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Sep 11 21:48:54 GMT 2023
    - 1.8K bytes
    - Click Count (0)
Back to Top