Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 633 for lwsync (0.12 sec)

  1. docs/tr/docs/async.md

    `await` in yalnızca `async def` ile tanımlanan fonksıyonların içinde kullanılabileceğini fark etmişsinizdir.
    
    Ama aynı zamanda, `async def` ile tanımlanan fonksiyonların "await" ile beklenmesi gerekir. Bu nedenle, "`async def` içeren fonksiyonlar yalnızca "`async def` ile tanımlanan fonksiyonların içinde çağrılabilir.
    
    
    Yani yumurta mı tavukdan, tavuk mu yumurtadan gibi ilk `async` fonksiyonu nasıl çağırılır?
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. docs/es/docs/async.md

    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    !!! note "Nota"
        Solo puedes usar `await` dentro de funciones creadas con `async def`.
    
    ---
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. pkg/controller/nodeipam/ipam/sync/sync.go

    	for {
    		select {
    		case op, more := <-sync.opChan:
    			if !more {
    				logger.V(2).Info("Stopping sync loop")
    				return
    			}
    			sync.c.ReportResult(op.run(logger, sync))
    			if !delayTimer.Stop() {
    				<-delayTimer.C
    			}
    		case <-delayTimer.C:
    			logger.V(4).Info("Running resync", "node", klog.KRef("", sync.nodeName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 07:50:01 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  4. pkg/controller/deployment/sync.go

    	if err != nil {
    		return err
    	}
    
    	allRSs := append(oldRSs, newRS)
    	return dc.syncDeploymentStatus(ctx, allRSs, newRS, d)
    }
    
    // sync is responsible for reconciling deployments on scaling events or when they
    // are paused.
    func (dc *DeploymentController) sync(ctx context.Context, d *apps.Deployment, rsList []*apps.ReplicaSet) error {
    	newRS, oldRSs, err := dc.getAllReplicaSetsAndSyncRevision(ctx, d, rsList, false)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  5. internal/dsync/dsync.go

    // 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
    
    // Dsync represents dsync client object which is initialized with
    // authenticated clients, used to initiate lock REST calls.
    type Dsync struct {
    	// List of rest client objects, one per lock server.
    	GetLockers func() ([]NetLocker, string)
    
    	// Timeouts to apply.
    	Timeouts Timeouts
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 01 19:14:28 UTC 2022
    - 1K bytes
    - Viewed (0)
  6. docs/ru/docs/async.md

    ```
    
    В этом случае *функции обработки пути* необходимо объявлять с использованием синтаксиса `async def`:
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    !!! note
        `await` можно использовать только внутри функций, объявленных с использованием `async def`.
    
    ---
    
    Если вы обращаетесь к сторонней библиотеке, которая с чем-то взаимодействует
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 39.9K bytes
    - Viewed (0)
  7. docs/pt/docs/async.md

    ```Python hl_lines="2 3"
    @app.get('/burgers')
    async def read_burgers():
        burgers = await get_burgers(2)
        return burgers
    ```
    
    ### Mais detalhes técnicos
    
    Você deve ter observado que `await` pode ser usado somente dentro de funções definidas com `async def`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  8. docs/fr/docs/async.md

    Vous avez donc compris que `await` peut seulement être utilisé dans des fonctions définies avec `async def`.
    
    Mais en même temps, les fonctions définies avec `async def` doivent être appelées avec `await` et donc dans des fonctions définies elles aussi avec `async def`.
    
    Vous avez donc remarqué ce paradoxe d'oeuf et de la poule, comment appelle-t-on la première fonction `async` ?
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Mar 31 23:52:53 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. docs/ja/docs/async.md

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

        return burgers
    ```
    
    ### 更多技术细节
    
    您可能已经注意到,`await` 只能在 `async def` 定义的函数内部使用。
    
    但与此同时,必须"等待"通过 `async def` 定义的函数。因此,带 `async def` 的函数也只能在 `async def` 定义的函数内部调用。
    
    那么,这关于先有鸡还是先有蛋的问题,如何调用第一个 `async` 函数?
    
    如果您使用 **FastAPI**,你不必担心这一点,因为"第一个"函数将是你的路径操作函数,FastAPI 将知道如何做正确的事情。
    
    但如果您想在没有 FastAPI 的情况下使用 `async` / `await`,则可以这样做。
    
    ### 编写自己的异步代码
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top