- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for subs (0.02 sec)
-
internal/pubsub/pubsub.go
go func() { <-doneCh ps.Lock() defer ps.Unlock() var remainTypes Mask for i, s := range ps.subs { if s == sub { ps.subs = append(ps.subs[:i], ps.subs[i+1:]...) } else { remainTypes.Merge(s.types) } } atomic.StoreUint64(&ps.types, uint64(remainTypes)) atomic.AddInt32(&ps.numSubscribers, -1) }() return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 06 16:57:30 UTC 2024 - 5.2K bytes - Viewed (0) -
internal/pubsub/pubsub_test.go
t.Fatalf("unexpected error: %v", err) } if err := ps.Subscribe(MaskAll, ch2, doneCh, nil); err != nil { t.Fatalf("unexpected error: %v", err) } ps.Lock() defer ps.Unlock() if len(ps.subs) != 2 || ps.NumSubscribers(MaskAll) != 2 || ps.Subscribers() != 2 { t.Fatalf("expected 2 subscribers") } } func TestNumSubscribersMask(t *testing.T) { ps := New[Maskable, Mask](2) ch1 := make(chan Maskable, 1)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/pt/docs/advanced/sub-applications.md
### Aplicação de nível superior Primeiro, crie a aplicação principal, de nível superior, **FastAPI**, e suas *operações de rota*: ```Python hl_lines="3 6-8" {!../../docs_src/sub_applications/tutorial001.py!} ``` ### Sub-aplicação Em seguida, crie sua sub-aplicação e suas *operações de rota*. Essa sub-aplicação é apenas outra aplicação FastAPI padrão, mas esta é a que será "montada":
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/sub-dependencies.md
query_or_cookie_extractor(["query_or_cookie_extractor"]) read_query["/items/"] query_extractor --> query_or_cookie_extractor --> read_query ``` ## Utilizando a mesma dependência múltiplas vezes Se uma de suas dependências é declarada várias vezes para a mesma *operação de rota*, por exemplo, múltiplas dependências com uma mesma subdependência, o **FastAPI** irá chamar essa subdependência uma única vez para cada requisição.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/386.s
SETCC AX SETCC foo+4(SB) // LTYPE2 rimnon { outcode(int($1), &$2); } DIVB AX DIVB foo+4(SB) PUSHL $foo+4(SB) POPL AX // LTYPE3 rimrem { outcode(int($1), &$2); } SUBB $1, AX SUBB $1, foo+4(SB) SUBB BX, AX SUBB BX, foo+4(SB) // LTYPE4 remrim { outcode(int($1), &$2); } CMPB AX, $1 CMPB foo+4(SB), $4 CMPB BX, AX CMPB foo+4(SB), BX // LTYPER nonrel { outcode(int($1), &$2); } label:
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Apr 09 18:57:21 UTC 2019 - 2K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/sub-dependencies.md
Sebastián Ramírez <******@****.***> 1728247014 +0200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/fa/docs/advanced/sub-applications.md
<img src="/img/tutorial/sub-applications/image01.png"> و سپس اسناد زیر برنامه را در آدرس <a href="http://127.0.0.1:8000/subapi/docs" class="external-link" target="_blank">http://127.0.0.1:8000/subapi/docs</a>. باز کنید. اسناد API خودکار برای زیر برنامه را خواهید دید، که فقط شامل path operations خود می شود، همه در زیر مسیر `/subapi` قرار دارند: <img src="/img/tutorial/sub-applications/image02.png">
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/sub-dependencies.md
# Sub-dependencies You can create dependencies that have **sub-dependencies**. They can be as **deep** as you need them to be. **FastAPI** will take care of solving them. ## First dependency "dependable" You could create a first dependency ("dependable") like: //// tab | Python 3.10+ ```Python hl_lines="8-9" {!> ../../docs_src/dependencies/tutorial005_an_py310.py!} ``` //// //// tab | Python 3.9+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/zh/docs/advanced/sub-applications.md
下图显示的是主应用 API 文档,只包括其自有的*路径操作*。 <img src="/img/tutorial/sub-applications/image01.png"> 然后查看子应用文档 <a href="http://127.0.0.1:8000/subapi/docs" class="external-link" target="_blank">http://127.0.0.1:8000/subapi/docs。</a> 下图显示的是子应用的 API 文档,也是只包括其自有的*路径操作*,所有这些路径操作都在 `/subapi` 子路径前缀下。 <img src="/img/tutorial/sub-applications/image02.png"> 两个用户界面都可以正常运行,因为浏览器能够与每个指定的应用或子应用会话。 ### 技术细节:`root_path`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/amd64.s
NEGQ foo+4(SB) // LTYPE2 rimnon { outcode($1, &$2); } INT $4 DIVB R11 DIVB 4(R11) DIVB foo+4(SB) // LTYPE3 rimrem { outcode($1, &$2); } SUBQ $4, DI SUBQ R11, DI SUBQ 4(R11), DI SUBQ foo+4(SB), DI SUBQ $4, 8(R12) SUBQ R11, 8(R12) SUBQ R11, foo+4(SB) // LTYPE4 remrim { outcode($1, &$2); } CMPB CX, $4 // LTYPER nonrel { outcode($1, &$2); } label: JB -4(PC) // JCS -4(PC)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Apr 09 18:57:21 UTC 2019 - 3.3K bytes - Viewed (0)