Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 628 for opens (0.04 seconds)

  1. src/cmd/addr2line/main.go

    	fmt.Fprintf(w, "\tfunction name\n")
    	fmt.Fprintf(w, "\tfile:line\n")
    }
    
    func usage() {
    	printUsage(os.Stderr)
    	os.Exit(2)
    }
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("addr2line: ")
    	counter.Open()
    
    	// pprof expects this behavior when checking for addr2line
    	if len(os.Args) > 1 && os.Args[1] == "--help" {
    		printUsage(os.Stdout)
    		os.Exit(0)
    	}
    
    	flag.Usage = usage
    	flag.Parse()
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Jun 21 19:58:04 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  2. docs/zh/docs/advanced/events.md

    此处,`shutdown` 事件处理器函数在 `log.txt` 中写入一行文本 `Application shutdown`。
    
    /// info | 说明
    
    `open()` 函数中,`mode="a"` 指的是**追加**。因此这行文本会添加在文件已有内容之后,不会覆盖之前的内容。
    
    ///
    
    /// tip | 提示
    
    注意,本例使用 Python `open()` 标准函数与文件交互。
    
    这个函数执行 I/O(输入/输出)操作,需要等待内容写进磁盘。
    
    但 `open()` 函数不支持使用 `async` 与 `await`。
    
    因此,声明事件处理函数要使用 `def`,不能使用 `asnyc def`。
    
    ///
    
    ### `startup` 和 `shutdown` 一起使用
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. internal/ioutil/append-file_windows.go

    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := lock.Open(src, os.O_RDONLY, 0o666)
    	if err != nil {
    		return err
    	}
    	defer srcFile.Close()
    	_, err = io.Copy(appendFile, srcFile)
    	return err
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            public long length() {
                return 0;
            }
    
            @Override
            public int getFileIndex() {
                return 0;
            }
        }
    
        @Test
        @DisplayName("open(): invalid URL path without trailing slash throws SmbException")
        void invalidUrlPathThrows() throws Exception {
            // Override the default setup for this specific test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  5. docs/es/docs/advanced/events.md

    {* ../../docs_src/events/tutorial003_py39.py hl[1,13] *}
    
    Un **context manager** en Python es algo que puedes usar en un statement `with`, por ejemplo, `open()` puede ser usado como un context manager:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    En versiones recientes de Python, también hay un **async context manager**. Lo usarías con `async with`:
    
    ```Python
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt

     *
     * This test includes tests from [Guava's](https://code.google.com/p/guava-libraries/)
     * MediaTypeTest.
     */
    open class MediaTypeTest {
      open fun MediaType.charsetName(): String? = parameter("charset")?.uppercase()
    
      protected open fun parse(string: String): MediaType = string.toMediaTypeOrNull()!!
    
      protected open fun assertInvalid(
        string: String,
        exceptionMessage: String?,
      ) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 7.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt

        Platform.get().log("[WS $name] onOpen", Platform.INFO, null)
        val delegate = delegate
        if (delegate != null) {
          this.delegate = null
          delegate.onOpen(webSocket, response)
        } else {
          events.add(Open(webSocket, response))
        }
      }
    
      override fun onMessage(
        webSocket: WebSocket,
        bytes: ByteString,
      ) {
        Platform.get().log("[WS $name] onMessage", Platform.INFO, null)
        val delegate = delegate
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  8. tests/error_translator_test.go

    	untranslatedErr := errors.New("some random error")
    	db, _ := gorm.Open(tests.DummyDialector{TranslatedErr: translatedErr})
    
    	err := db.AddError(untranslatedErr)
    	if !errors.Is(err, untranslatedErr) {
    		t.Fatalf("expected err: %v got err: %v", untranslatedErr, err)
    	}
    
    	// it should translate error when the TranslateError flag is true
    	db, _ = gorm.Open(tests.DummyDialector{TranslatedErr: translatedErr}, &gorm.Config{TranslateError: true})
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  9. docs/es/docs/deployment/fastapicloud.md

    * HTTPS
    * Replicación, con autoescalado basado en requests
    * etc.
    
    FastAPI Cloud es el sponsor principal y proveedor de financiación de los proyectos open source de *FastAPI and friends*. ✨
    
    ## Desplegar en otros proveedores de la nube { #deploy-to-other-cloud-providers }
    
    FastAPI es open source y está basado en estándares. Puedes desplegar apps de FastAPI en cualquier proveedor de la nube que elijas.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:16:35 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  10. docs/en/docs/deployment/fastapicloud.md

    * HTTPS
    * Replication, with autoscaling based on requests
    * etc.
    
    FastAPI Cloud is the primary sponsor and funding provider for the *FastAPI and friends* open source projects. ✨
    
    ## Deploy to other cloud providers { #deploy-to-other-cloud-providers }
    
    FastAPI is open source and based on standards. You can deploy FastAPI apps to any cloud provider you choose.
    
    Follow your cloud provider's guides to deploy FastAPI apps with them. 🤓
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 17 19:33:53 GMT 2025
    - 2K bytes
    - Click Count (0)
Back to Top