We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a741ae commit df561e1Copy full SHA for df561e1
hazelcast/internal/asyncio_proxy/base.py
@@ -41,11 +41,13 @@ async def destroy(self) -> bool:
41
``True`` if this proxy is destroyed successfully, ``False``
42
otherwise.
43
"""
44
+ destroyed = False
45
async with asyncio.TaskGroup() as tg: # type: ignore[attr-defined]
46
tg.create_task(self._on_destroy())
- return await tg.create_task(
47
+ destroyed = await tg.create_task(
48
self._context.proxy_manager.destroy_proxy(self.service_name, self.name)
49
)
50
+ return destroyed
51
52
async def _on_destroy(self):
53
pass
0 commit comments