-
## test code
```python
import contextvars
def main():
print("Hello from t1!")
if __name__ == "__main__":
c1 = contextvars.ContextVar("test")
c1.set("Hello from t1")
main()…
-
Hi! I know that `asyncio` support is not yet implemented (as described on README), but to "get there" wouldn't be like adding some kind of `contextvars` task factory into the `asyncio.Task.current_tas…
-
When `run_sync_in_worker_thread` or `BlockingTrioPortal` switch between the trio thread and a worker thread, they should preserve the `contextvars.Context`.
Using literally the same `Context` turns…
-
### Environment
- Pythonnet version: 3.0.0-dev1 & 2.5.1
- Python version: 3.8
- Operating System: Ubuntu 20.04
- .NET Runtime: 5
### Details
- Describe what you were trying to ge…
-
After filing https://code.djangoproject.com/ticket/32815, it was more evident that the issue I'm experiencing when trying to reset a `ContextVar` is related to `asgiref`. However, I'm not sure about t…
-
### Use case
The built in logger supports adding additional context using the `append_keys` and removing that additional context using the `remove_keys` methods, as documented here:
https://docs.pow…
-
We need an easier opt-out of the behavior introduced in #1186, because most output I'm seeing come from threads is really confusing or even lost, where the previous behavior of sending all thread outp…
minrk updated
2 weeks ago
-
There's [a section](https://github.com/tgoodlet/tractor/tree/contexts#actor-local-variables) on how this works right now but I'd really like to move to the way `trio` does it.
Namely,
- create per…
-
Sorry if this is obvious, but async python is new to me. How do I keep a context for a single email when I have multiple hooks? i.e. I want to check the daemon_name macro in the on_connect hook, and t…
-
### Describe the bug
Reports of:
```
Failed to detach context
Traceback (most recent call last):
File "/path/to/temporalio/contrib/opentelemetry.py", line 427, in _top_level_workflow_cont…
cretz updated
6 months ago