Skip to content

Commit b960cf6

Browse files
authoredApr 22, 2025
Add async to abstract add_index and remove_index methods of NamedMap (#235)
1 parent 8b86d99 commit b960cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/coherence/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ async def entries(
621621
"""
622622

623623
@abc.abstractmethod
624-
def add_index(
624+
async def add_index(
625625
self, extractor: ValueExtractor[T, E], ordered: bool = False, comparator: Optional[Comparator] = None
626626
) -> None:
627627
"""
@@ -638,7 +638,7 @@ def add_index(
638638
"""
639639

640640
@abc.abstractmethod
641-
def remove_index(self, extractor: ValueExtractor[T, E]) -> None:
641+
async def remove_index(self, extractor: ValueExtractor[T, E]) -> None:
642642
"""
643643
Removes an index on this `NamedMap`.
644644

0 commit comments

Comments
 (0)