Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Reset (0.15 sec)

  1. docs/en/docs/release-notes.md

    This means that now, if you set a value in a context variable before `yield`, the value would still be available after `yield` (as you would intuitively expect). And it also means that you can reset the context variable with a token afterwards.
    
    For example, this works correctly now:
    
    ```Python
    from contextvars import ContextVar
    from typing import Any, Dict, Optional
    
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
Back to top