Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 140 for kAsync (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/chanbarrier_test.go

    package runtime_test
    
    import (
    	"runtime"
    	"sync"
    	"testing"
    )
    
    type response struct {
    }
    
    type myError struct {
    }
    
    func (myError) Error() string { return "" }
    
    func doRequest(useSelect bool) (*response, error) {
    	type async struct {
    		resp *response
    		err  error
    	}
    	ch := make(chan *async, 0)
    	done := make(chan struct{}, 0)
    
    	if useSelect {
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            when:
            async {
                thread.blockUntil.unknown
            }
    
            then:
            e = thrown()
            e.message == "Timeout waiting for instant 'unknown' to be defined by another thread."
    
            when:
            start {
                thread.blockUntil.unknown
            }
            async { }
    
            then:
            e = thrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. docs_src/security/tutorial005.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.2K bytes
    - Viewed (0)
  8. docs_src/security/tutorial005_an.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. docs_src/security/tutorial003_an_py310.py

        return user
    
    
    async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
        user = fake_decode_token(token)
        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Invalid authentication credentials",
                headers={"WWW-Authenticate": "Bearer"},
            )
        return user
    
    
    async def get_current_active_user(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMailDeliveryDepartmentCreator.java

    import org.dbflute.mail.send.supplement.async.SMailAsyncStrategy;
    import org.dbflute.mail.send.supplement.filter.SMailSubjectFilter;
    import org.dbflute.mail.send.supplement.label.SMailLabelStrategy;
    import org.dbflute.optional.OptionalThing;
    import org.dbflute.util.DfStringUtil;
    import org.lastaflute.core.magic.async.AsyncManager;
    import org.lastaflute.core.magic.async.ConcurrentAsyncCall;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top