document Local()
Hi All,
Currently there's a hint in the readme that asgiref provides thread locals, but they're undocumented as far as I can tell.
Thanks! Collin
Ah yes, excellent point. They are mostly drop-in for threading.Local, but it is likely wise to explain the differences.
Honestly, all I really need to know is how to import it. Currently the docs say there's a module that provides a drop-in replacement, but doesn't say what the name of the module is so I can import it.
Basically, anywhere you would write:
from threading import Local
you can instead write
from asgiref.local import Local
and it will work the same, with the same API, except it will differentiate based on coroutine rather than just by thread.
Right, yeah exactly. What you just said should probably be added to the readme and/or documentation.
Hello, I would like to contribute. How to get started?