Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
cutoffthetop committed Feb 16, 2024
1 parent 5567101 commit e880075
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mex/common/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@


class ContextStore(Generic[ContextResource]):
"""Drop-in replacement for `ContextVar`s to store global instances."""
"""Drop-in replacement for `ContextVar`s to store global instances.
Since we are not using asynchronous code yet, we simply want to store
configuration state or connection pools in a controlled way without
worrying about concurrent context management.
"""

def __init__(self, name: str, default: ContextResource) -> None:
"""Create a new context store with an identifiable name and a default value."""
Expand Down

0 comments on commit e880075

Please sign in to comment.