-
Notifications
You must be signed in to change notification settings - Fork 74
Asyncio Module Ported more tests [4/6] #750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 64 commits
cbe98dc
162fd17
9931956
856e3df
35384bf
fdda120
fee5b45
fc2c38b
1772031
170cf89
539c904
22449a8
5406bc6
a417a4a
d00c480
baa3bc1
ebfc9e2
6928837
3e03cbf
51ced7a
e635b94
4f103f6
042cc58
265a2b4
293975d
2718478
58783dc
3cf9982
7e97ec7
6a558e8
a630706
c1798ea
e92936a
6ced889
c313bfa
6222c6b
120a58a
80880b8
6431acc
e9a9b5e
5334cd1
a14290a
492ccc1
e8a2600
24eb6bf
6ab9365
91bf1d1
2128f5e
62697e3
a87a5c6
8d7eede
00a2d12
539466b
e673679
ab4a746
319bb35
8e325ea
eed53b3
1ca7fd6
d9acede
bd23f41
76759ec
2a2d6e8
6da4226
550a006
2c8f10e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,10 +41,13 @@ async def destroy(self) -> bool: | |
| ``True`` if this proxy is destroyed successfully, ``False`` | ||
| otherwise. | ||
| """ | ||
| self._on_destroy() | ||
| return await self._context.proxy_manager.destroy_proxy(self.service_name, self.name) | ||
| async with asyncio.TaskGroup() as tg: # type: ignore[attr-defined] | ||
| tg.create_task(self._on_destroy()) | ||
| return await tg.create_task( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not use simpler (really need concurrency here?): Reads a little odd with the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's safe, the task group will not exit without all tasks are completed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks odd to me to have the |
||
| self._context.proxy_manager.destroy_proxy(self.service_name, self.name) | ||
| ) | ||
|
|
||
| def _on_destroy(self): | ||
| async def _on_destroy(self): | ||
| pass | ||
|
|
||
| def __repr__(self) -> str: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.