Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 592 for isync (0.06 sec)

  1. docs_src/security/tutorial005_py310.py

    @app.get("/users/me/", response_model=User)
    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: User = Security(get_current_active_user, scopes=["items"]),
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/internal/poll/fd_fsync_darwin.go

    package poll
    
    import (
    	"errors"
    	"internal/syscall/unix"
    	"syscall"
    )
    
    // Fsync invokes SYS_FCNTL with SYS_FULLFSYNC because
    // on OS X, SYS_FSYNC doesn't fully flush contents to disk.
    // See Issue #26650 as well as the man page for fsync on OS X.
    func (fd *FD) Fsync() error {
    	if err := fd.incref(); err != nil {
    		return err
    	}
    	defer fd.decref()
    	return ignoringEINTR(func() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:20:48 UTC 2024
    - 850 bytes
    - Viewed (0)
  3. src/crypto/tls/bogo_config.json

            "Basic-Client-NoTicket-TLS-Sync": "TODO: first pass, this should be fixed",
            "Basic-Server-RSA-TLS-Sync": "TODO: first pass, this should be fixed",
            "Basic-Client-NoTicket-TLS-Sync-SplitHandshakeRecords": "TODO: first pass, this should be fixed",
            "Basic-Server-RSA-TLS-Sync-SplitHandshakeRecords": "TODO: first pass, this should be fixed",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 15:52:42 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  4. docs_src/security/tutorial004_py310.py

        if user is None:
            raise credentials_exception
        return user
    
    
    async def get_current_active_user(current_user: User = Depends(get_current_user)):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: OAuth2PasswordRequestForm = Depends(),
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/events.md

    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    When you create a context manager or an async context manager like above, what it does is that, before entering the `with` block, it will execute the code before the `yield`, and after exiting the `with` block, it will execute the code after the `yield`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/async/ServiceLifecycleTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.tooling.internal.consumer.async
    
    import org.gradle.test.fixtures.concurrent.ConcurrentSpec
    
    class ServiceLifecycleTest extends ConcurrentSpec {
        def lifecycle = new ServiceLifecycle("[service]")
    
        def "can use service when not stopped"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. docs_src/security/tutorial005_an_py310.py

                )
        return user
    
    
    async def get_current_active_user(
        current_user: Annotated[User, Security(get_current_user, scopes=["me"])],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. docs_src/security/tutorial005_an_py39.py

                )
        return user
    
    
    async def get_current_active_user(
        current_user: Annotated[User, Security(get_current_user, scopes=["me"])],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. pilot/pkg/server/instance_test.go

    	cases := []struct {
    		name  string
    		c     *fakeComponent
    		async bool
    		wait  bool
    	}{
    		{
    			name: "RunComponent",
    			// Use a large duration - it will not complete before the end of the test.
    			// This is used to verify that we don't wait for it while shutting down.
    			c:     newFakeComponent(longDuration, stop),
    			async: false,
    			wait:  false,
    		},
    		{
    			name: "RunComponentAsync",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
            def text = "some text"
            def bytes = text.bytes
    
            when:
            async {
                start {
                    def b1 = stream.read()
                    assert b1 == bytes[0]
                    def b2 = stream.read()
                    assert b2 == bytes[1]
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top