- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 335 for context_a (0.07 seconds)
-
tests/test_dependency_contextmanager.py
async def context_a(state: dict = Depends(get_state)): state["context_a"] = "started a" try: yield state finally: state["context_a"] = "finished a" async def context_b(state: dict = Depends(context_a)): state["context_b"] = "started b" try: yield state finally: state["context_b"] = f"finished b with a: {state['context_a']}"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.5K bytes - Click Count (0) -
src/cmd/api/main_test.go
t.Fatal(err) } nextFiles = next } for _, c := range contexts { c.Compiler = build.Default.Compiler } walkers := make([]*Walker, len(contexts)) var wg sync.WaitGroup for i, context := range contexts { i, context := i, context wg.Add(1) go func() { defer wg.Done() walkers[i] = NewWalker(context, filepath.Join(testenv.GOROOT(t), "src")) }() } wg.Wait()
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Feb 20 03:25:33 GMT 2025 - 31.4K bytes - Click Count (0) -
internal/grid/handlers.go
return val } func setCaller(ctx context.Context, cl *RemoteClient) context.Context { //nolint:staticcheck // SA1029 Staticcheck is drunk. return context.WithValue(ctx, ctxCallerKey{}, cl) } func setSubroute(ctx context.Context, s string) context.Context { //nolint:staticcheck // SA1029 Staticcheck is drunk. return context.WithValue(ctx, ctxSubrouteKey{}, s) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 27.7K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md
## Gerenciadores de contexto { #context-managers } ### O que são "Gerenciadores de Contexto" { #what-are-context-managers } "Gerenciadores de Contexto" são qualquer um dos objetos Python que podem ser utilizados com a declaração `with`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 14.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
* build a smaller set of projects but perform other operations in the context of your reactor. */ private List<MavenProject> allProjects; private MavenProject topLevelProject; private ProjectDependencyGraph projectDependencyGraph; private boolean parallel; /** * Plugin context keyed by project ({@link MavenProject#getId()}) and by plugin lookup keyCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 16.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
createTerminal(context); activateLogging(context); helpOrVersionAndMayExit(context); preCommands(context); container(context); postContainer(context); pushUserProperties(context); // after PropertyContributor SPI lookup(context); init(context); postCommands(context); settings(context); return execute(context);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Oct 28 13:01:07 GMT 2025 - 43.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java
protected void lookup(MavenContext context) throws Exception { if (context.maven == null) { super.lookup(context); context.maven = context.lookup.lookup(Maven.class); } } @Override protected void postCommands(MavenContext context) throws Exception { super.postCommands(context); Logger logger = context.logger;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 28.2K bytes - Click Count (0) -
cmd/object-api-interface.go
MakeBucket(ctx context.Context, bucket string, opts MakeBucketOptions) error GetBucketInfo(ctx context.Context, bucket string, opts BucketOptions) (bucketInfo BucketInfo, err error) ListBuckets(ctx context.Context, opts BucketOptions) (buckets []BucketInfo, err error) DeleteBucket(ctx context.Context, bucket string, opts DeleteBucketOptions) error
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 17.5K bytes - Click Count (0) -
cmd/notification.go
func (sys *NotificationSys) ServerInfo(ctx context.Context, metrics bool) []madmin.ServerProperties { reply := make([]madmin.ServerProperties, len(sys.peerClients)) var wg sync.WaitGroup for i, client := range sys.peerClients { if client == nil { continue } wg.Add(1) go func(client *peerRESTClient, idx int) { defer wg.Done() ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 46K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java
String result = upgradeGoal.testDoUpgradeLogic(context, "4.0.0"); assertEquals("4.0.0", result); } @Test @DisplayName("should prioritize explicit model over --all option") void shouldPrioritizeExplicitModelOverAllOption() { UpgradeContext context =
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 13.7K bytes - Click Count (0)