Skip to content

Commit

Permalink
Add towncrier
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Dec 27, 2023
1 parent d530fff commit 9e42b8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changes/DM-42188.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added ``ButlerFactory``, a factory class for constructing Butler instances. This is intended for use in long-lived services that need to be able to create a Butler instance for each incoming client request.
7 changes: 6 additions & 1 deletion python/lsst/daf/butler/_butler_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,16 @@ class ButlerFactory:
Notes
-----
This interface is currently considered experimental and is subject to
change.
For each label in the repository index, caches shared state to allow fast
instantiation of new instances.
Instance methods on this class are threadsafe. A single instance of
ButlerFactory can be shared between multiple threads.
`ButlerFactory` can be shared between multiple threads. Note that
``DirectButler`` itself is not currently threadsafe, so this guarantee does
not buy you much. See DM-42317.
"""

def __init__(self, repositories: Mapping[str, str] | None = None) -> None:
Expand Down

0 comments on commit 9e42b8b

Please sign in to comment.