Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 790 for resync (0.27 sec)

  1. docs/ja/docs/async.md

    ```
    
    ### より発展的な技術詳細
    
    `await` は `async def` で定義された関数内でのみ使用できることがわかったかと思います。
    
    しかし同時に、`async def` で定義された関数は「awaitされる」必要があります。なので、`async def` を持つ関数は、`async def` で定義された関数内でのみ呼び出せます。
    
    では、このニワトリと卵の問題について、最初の `async` 関数をどのように呼び出すのでしょうか?
    
    **FastAPI**を使用している場合、その「最初の」関数が*path operation 関数*であり、FastAPIが正しく実行する方法を知っているので、心配する必要はありません。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/async-tests.md

    ```Python hl_lines="7"
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    !!! tip
        Note that the test function is now `async def` instead of just `def` as before when using the `TestClient`.
    
    Then we can create an `AsyncClient` with the app, and send async requests to it, using `await`.
    
    ```Python hl_lines="9-10"
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    This is the equivalent to:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/async-tests.md

    ```Python hl_lines="7"
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    !!! tip "Tipp"
        Beachten Sie, dass die Testfunktion jetzt `async def` ist und nicht nur `def` wie zuvor, wenn Sie den `TestClient` verwenden.
    
    Dann können wir einen `AsyncClient` mit der App erstellen und mit `await` asynchrone Requests an ihn senden.
    
    ```Python hl_lines="9-10"
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:25:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/async-tests.md

    ➖ 💪 ⚙️ 🔁 🔢 👆 💯 💪 ⚠, 🖼, 🕐❔ 👆 🔬 👆 💽 🔁. 🌈 👆 💚 💯 📨 📨 👆 FastAPI 🈸 & ⤴️ ✔ 👈 👆 👩‍💻 ⏪ ✍ ☑ 💽 💽, ⏪ ⚙️ 🔁 💽 🗃.
    
    ➡️ 👀 ❔ 👥 💪 ⚒ 👈 👷.
    
    ## pytest.mark.anyio
    
    🚥 👥 💚 🤙 🔁 🔢 👆 💯, 👆 💯 🔢 ✔️ 🔁. AnyIO 🚚 👌 📁 👉, 👈 ✔ 👥 ✔ 👈 💯 🔢 🤙 🔁.
    
    ## 🇸🇲
    
    🚥 👆 **FastAPI** 🈸 ⚙️ 😐 `def` 🔢 ↩️ `async def`, ⚫️ `async` 🈸 🔘.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. docs/em/docs/async.md

    ```Python hl_lines="2-3"
    @app.get('/burgers')
    async def read_burgers():
        burgers = await get_burgers(2)
        return burgers
    ```
    
    ### 🌅 📡 ℹ
    
    👆 💪 ✔️ 👀 👈 `await` 💪 🕴 ⚙️ 🔘 🔢 🔬 ⏮️ `async def`.
    
    ✋️ 🎏 🕰, 🔢 🔬 ⏮️ `async def` ✔️ "⌛". , 🔢 ⏮️ `async def` 💪 🕴 🤙 🔘 🔢 🔬 ⏮️ `async def` 💁‍♂️.
    
    , 🔃 🥚 & 🐔, ❔ 👆 🤙 🥇 `async` 🔢 ❓
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/async-sql-databases.md

    * ✍ 🎉 🐕‍🦺 🔗 & 🔌 ⚪️➡️ 💽.
    
    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## ✍ 🗒
    
    ✍ *➡ 🛠️ 🔢* ✍ 🗒:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! Note
        👀 👈 👥 🔗 ⏮️ 💽 ⚙️ `await`, *➡ 🛠️ 🔢* 📣 ⏮️ `async`.
    
    ### 👀 `response_model=List[Note]`
    
    ⚫️ ⚙️ `typing.List`.
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. internal/dsync/drwmutex.go

    // Retry unit interval
    var lockRetryMinInterval time.Duration
    
    var lockRetryBackOff func(*rand.Rand, uint) time.Duration
    
    func init() {
    	// Check for MINIO_DSYNC_TRACE env variable, if set logging will be enabled for failed REST operations.
    	dsyncLog = env.Get("_MINIO_DSYNC_TRACE", "0") == "1"
    
    	lockRetryMinInterval = 250 * time.Millisecond
    	if lri := env.Get("_MINIO_LOCK_RETRY_INTERVAL", ""); lri != "" {
    		v, err := strconv.Atoi(lri)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  8. internal/dsync/dsync-server_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"net/http/httptest"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/minio/mux"
    )
    
    const numberOfNodes = 5
    
    var (
    	ds          *Dsync
    	nodes       = make([]*httptest.Server, numberOfNodes) // list of node IP addrs or hostname with ports.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  9. internal/dsync/dsync-client_test.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"net/http"
    	"net/url"
    	"time"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/rest"
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 20 17:36:09 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/async-sql-encode-databases.md

    ```Python hl_lines="42  45-47  50-52"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    ## Read notes
    
    Create the *path operation function* to read notes:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    ### Notice the `response_model=List[Note]`
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top