- Sort Score
- Num 10 results
- Language All
Results 321 - 330 of 696 for writer (0.05 seconds)
-
docs_src/background_tasks/tutorial002_py39.py
from typing import Union from fastapi import BackgroundTasks, Depends, FastAPI app = FastAPI() def write_log(message: str): with open("log.txt", mode="a") as log: log.write(message) def get_query(background_tasks: BackgroundTasks, q: Union[str, None] = None): if q: message = f"found query: {q}\n" background_tasks.add_task(write_log, message) return q
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 675 bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/PluginXmlFactory.java
* under the License. */ package org.apache.maven.api.services.xml; import org.apache.maven.api.annotations.Experimental; import org.apache.maven.api.plugin.descriptor.PluginDescriptor; /** * Reads and writes a {@link PluginDescriptor} object to/from XML. * * @since 4.0.0 */ @ExperimentalCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Feb 09 17:13:31 GMT 2024 - 1.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/SettingsXmlFactory.java
* under the License. */ package org.apache.maven.api.services.xml; import org.apache.maven.api.annotations.Experimental; import org.apache.maven.api.settings.Settings; /** * Reads and writes a {@link Settings} object to/from XML. * * @since 4.0.0 */ @ExperimentalCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Mar 23 05:29:39 GMT 2023 - 1.1K bytes - Click Count (0) -
utils/utils.go
yval := reflect.ValueOf(y) if xval.Kind() == reflect.Ptr && xval.IsNil() || yval.Kind() == reflect.Ptr && yval.IsNil() { return false } if valuer, ok := x.(driver.Valuer); ok { x, _ = valuer.Value() } if valuer, ok := y.(driver.Valuer); ok { y, _ = valuer.Value() } return reflect.DeepEqual(x, y) } func ToString(value interface{}) string { switch v := value.(type) { case string:
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Oct 30 10:56:26 GMT 2025 - 4.5K bytes - Click Count (0) -
cmd/namespace-lock.go
delete(n.lockMap, resource) } } // dsync's distributed lock instance. type distLockInstance struct { rwMutex *dsync.DRWMutex opsID string } // Lock - block until write lock is taken or timeout has occurred. func (di *distLockInstance) GetLock(ctx context.Context, timeout *dynamicTimeout) (LockContext, error) { lockSource := getSource(2) start := UTCNow()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.2K bytes - Click Count (0) -
.github/workflows/people.yml
required: false default: "false" env: UV_SYSTEM_PYTHON: 1 jobs: job: if: github.repository_owner == 'fastapi' runs-on: ubuntu-latest permissions: contents: write steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v6 - name: Set up PythonCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Nov 21 13:03:21 GMT 2025 - 1.6K bytes - Click Count (0) -
.github/workflows/smokeshow.yml
name: Smokeshow on: workflow_run: workflows: [Test] types: [completed] permissions: statuses: write env: UV_SYSTEM_PYTHON: 1 jobs: smokeshow: runs-on: ubuntu-latest steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v6 - uses: actions/setup-python@v6Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 17:36:42 GMT 2025 - 1.6K bytes - Click Count (0) -
cmd/metrics-resource.go
readsPerSec: "Reads per second on a drive", writesPerSec: "Writes per second on a drive", readsKBPerSec: "Kilobytes read per second on a drive", writesKBPerSec: "Kilobytes written per second on a drive", readsAwait: "Average time for read requests to be served on a drive", writesAwait: "Average time for write requests to be served on a drive",
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 17.2K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt
@Throws(Exception::class) override fun doExecute(s: String) { bufferedWriter.write(s) bufferedWriter.write('\n'.code) } }) } }) }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Apr 11 15:53:18 GMT 2025 - 7.1K bytes - Click Count (0) -
internal/grid/benchmark_test.go
} const payloadSize = 512 rng := rand.New(rand.NewSource(time.Now().UnixNano())) payload := make([]byte, payloadSize) _, err = rng.Read(payload) errFatal(err) // Wait for all to connect // Parallel writes per server. b.Run("bytes", func(b *testing.B) { for par := 1; par <= 32; par *= 2 { b.Run("par="+strconv.Itoa(par*runtime.GOMAXPROCS(0)), func(b *testing.B) { defer timeout(60 * time.Second)()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.5K bytes - Click Count (0)