- Sort Score
- Result 10 results
- Languages All
Results 611 - 620 of 1,197 for close (0.03 sec)
-
cmd/xl-storage-format-v2_test.go
xhttp "github.com/minio/minio/internal/http" ) func TestReadXLMetaNoData(t *testing.T) { f, err := os.Open("testdata/xl.meta-corrupt.gz") if err != nil { t.Fatal(err) } defer f.Close() gz, err := gzip.NewReader(bufio.NewReader(f)) if err != nil { t.Fatal(err) } buf, err := io.ReadAll(gz) if err != nil { t.Fatal(err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0) -
internal/disk/stat_linux.go
iostats.DiscardTicks = stats[14] } return } func readStat(fileName string) (stats []uint64, err error) { file, err := os.Open(fileName) if err != nil { return nil, err } defer file.Close() s, err := bufio.NewReader(file).ReadString('\n') if err != nil && !errors.Is(err, io.EOF) { return nil, err } statLine := strings.TrimSpace(s) for _, token := range strings.Fields(statLine) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
File tempFile = createTempFile(); PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); writer.println("rud a chur ar an méar fhada"); writer.close(); // First check that we can't find it without setting the context loader. // This is a sanity check that the test doesn't spuriously pass because // the resource is visible to the system class loader.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
) = error("unsupported") } /** Returns true if no tasks have been scheduled. This runs the coordinator for confirmation. */ fun isIdle() = taskRunner.activeQueues().isEmpty() override fun close() { tasksExecutor.shutdownNow() } companion object { var instance = 0 @JvmField val assertionsEnabled: Boolean = OkHttpClient::class.java.desiredAssertionStatus() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 29 00:33:04 UTC 2024 - 12.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md
# Зависимости с yield FastAPI поддерживает зависимости, которые выполняют некоторые <abbr title='также известные как "exit", "cleanup", "teardown", "close", "context managers", ...'>дополнительные действия после завершения работы</abbr>. Для этого используйте `yield` вместо `return`, а дополнительный код напишите после него. /// tip | "Подсказка" Обязательно используйте `yield` один-единственный раз. /// /// note | "Технические детали"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
log.warn("Session was not properly released"); } } /** * {@inheritDoc} * * @see java.lang.AutoCloseable#close() */ @Override public void close () { release(); } /** * */ public void release () { long usage = this.usageCount.decrementAndGet();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Nov 14 17:41:04 UTC 2021 - 49K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
would be valid to use as a **FastAPI** dependency. In fact, FastAPI uses those two decorators internally. /// ## A database dependency with `yield` For example, you could use this to create a database session and close it after finishing. Only the code prior to and including the `yield` statement is executed before creating a response: ```Python hl_lines="2-4" {!../../docs_src/dependencies/tutorial007.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java
holder.add(ftpAuthentication); } } ftpAuthenticationHolder = holder; } @Override public void close() { if (ftpAuthenticationHolder == null) { return; } if (logger.isDebugEnabled()) { logger.debug("Closing FtpClient..."); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 25.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java
throw new DictionaryException("Failed to write: " + item, e); } } return null; } @Override public void close() { try { writer.flush(); } catch (final IOException e) { // ignore } CloseableUtil.closeQuietly(writer);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java
throw new DictionaryException("Failed to write: " + item, e); } } return null; } @Override public void close() { try { writer.flush(); } catch (final IOException e) { // ignore } CloseableUtil.closeQuietly(writer);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0)