Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for run_sync (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/concurrency.py

        except Exception as e:
            ok = bool(
                await anyio.to_thread.run_sync(
                    cm.__exit__, type(e), e, e.__traceback__, limiter=exit_limiter
                )
            )
            if not ok:
                raise e
        else:
            await anyio.to_thread.run_sync(
                cm.__exit__, None, None, None, limiter=exit_limiter
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. scripts/translate.py

        MAX_ATTEMPTS = 3
        for attempt_no in range(1, MAX_ATTEMPTS + 1):
            print(f"Running agent for {out_path} (attempt {attempt_no}/{MAX_ATTEMPTS})")
            result = agent.run_sync(prompt)
            out_content = f"{result.output.strip()}\n"
            try:
                check_translation(
                    doc_lines=out_content.splitlines(),
                    en_doc_lines=original_content.splitlines(),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/witness/WitnessClient.java

         * @return a future that completes when unregistration is done
         */
        public CompletableFuture<Void> unregister(WitnessRegistration registration) {
            return CompletableFuture.runAsync(() -> {
                try {
                    registration.setState(WitnessRegistrationState.UNREGISTERING);
    
                    WitnessUnregisterRequest request = new WitnessUnregisterRequest();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  4. docs/smb3-features/06-witness-protocol-design.md

                    throw new RuntimeException(e);
                }
            });
        }
        
        public CompletableFuture<Void> unregister(WitnessRegistration registration) {
            return CompletableFuture.runAsync(() -> {
                try {
                    registration.setState(WitnessRegistrationState.UNREGISTERING);
                    
                    WitnessUnregisterRequest request = new WitnessUnregisterRequest();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 42K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            if (timeoutSeconds <= 0) {
                timeoutSeconds = DEFAULT_LEASE_BREAK_TIMEOUT;
            }
    
            CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
                handleLeaseBreak(key, newState);
            });
    
            try {
                future.get(timeoutSeconds, TimeUnit.SECONDS);
            } catch (TimeoutException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  6. docs/smb3-features/04-directory-leasing-design.md

                // Cancel any pending notifications
                cancelNotification(handle);
            }
        }
        
        private void startAsyncNotification(ChangeNotificationHandle handle) {
            CompletableFuture.runAsync(() -> {
                while (handle.active) {
                    try {
                        // Send SMB2 Change Notify request
                        Smb2ChangeNotifyRequest request = new Smb2ChangeNotifyRequest();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 36.2K bytes
    - Click Count (0)
Back to Top