Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,197 for close (0.06 sec)

  1. guava/src/com/google/common/base/FinalizableReferenceQueue.java

     *           ...log a message about how nobody called close()...
     *           try {
     *             serverSocket.close();
     *           } catch (IOException e) {
     *             ...
     *           }
     *         }
     *       }
     *     };
     *     references.add(reference);
     *     return myServer;
     *   }
     *
     *   public void close() {
     *     serverSocket.close();
     *   }
     * }
     * }</pre>
     *
     * @author Bob Lee
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 11 20:51:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. internal/store/batch.go

    	default:
    	}
    	if _, err := b.store.PutMultiple(b.items); err != nil {
    		return err
    	}
    	b.items = make([]I, 0, b.limit)
    	return nil
    }
    
    // Close commits the pending items and quits the goroutines
    func (b *Batch[I]) Close() error {
    	defer func() {
    		close(b.quitCh)
    	}()
    
    	b.Lock()
    	defer b.Unlock()
    	return b.commit()
    }
    
    // NewBatch creates a new batch
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepository.java

                    ObjectOutputStream objOutputStream = new ObjectOutputStream(new BufferedOutputStream(outputStream));
                    objOutputStream.writeObject(classes);
                    objOutputStream.close();
                } finally {
                    outputStream.close();
                }
            } catch (IOException e) {
                throw new GradleException(String.format("Could not write meta-data to %s.", repoFile), e);
            }
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4K bytes
    - Viewed (0)
  4. internal/config/lambda/event/targetlist.go

    	// Stores any error while removing a target or while sending an event.
    	Err error
    }
    
    // Remove - closes and removes targets by given target IDs.
    func (list *TargetList) Remove(targetIDSet TargetIDSet) {
    	list.Lock()
    	defer list.Unlock()
    
    	for id := range targetIDSet {
    		target, ok := list.targets[id]
    		if ok {
    			target.Close()
    			delete(list.targets, id)
    		}
    	}
    }
    
    // Targets - list all targets
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertExpectedString(writer.toString());
      }
    
      public void testOpenBufferedStream() throws IOException {
        BufferedReader reader = source.openBufferedStream();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

                }
                catch ( CIFSException e1 ) {
                    log.debug("Failed to close enum", e);
                }
            }
            return n;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close () throws CIFSException {
            if ( this.next != null ) {
                doClose();
            }
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.8K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/fakes_test.go

    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    // Fd returns the file descriptor
    func (f *fakeNs) Fd() uintptr {
    	return f.fd
    }
    
    func (f *fakeNs) Inode() uint64 {
    	return f.inode
    }
    
    // Close simulates closing the file descriptor and returns nil for no error
    func (f *fakeNs) Close() error {
    	f.closed.Store(true)
    	return nil
    }
    
    func fakeFs() fs.FS {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 23:33:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/EmptyIterator.java

         */
        @Override
        public SmbResource next () {
            return null;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CloseableIterator#close()
         */
        @Override
        public void close () throws CIFSException {}
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CloseableIterator#remove()
         */
        @Override
        public void remove() {
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Oct 16 10:32:35 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HeadersTest.kt

        }
      }
    
      @Test fun headersEquals() {
        val headers1 =
          Headers.Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        val headers2 =
          Headers.Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        assertThat(headers2).isEqualTo(headers1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. cmd/signals.go

    	finished := make(chan struct{})
    	go func() {
    		globalMRFState.shutdown()
    		close(finished)
    	}()
    	select {
    	case <-time.After(shutdownTimeout):
    	case <-finished:
    	}
    }
    
    func handleSignals() {
    	// Custom exit function
    	exit := func(success bool) {
    		if globalLoggerOutput != nil {
    			globalLoggerOutput.Close()
    		}
    
    		// If global profiler is set stop before we exit.
    		globalProfilerMu.Lock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 04 17:02:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top