Skip to content

Commit 0ae7b45

Browse files
authored
docs(task): Improve _run_async_task docstring for clarity (#126)
1 parent 19ec054 commit 0ae7b45

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/fluxqueue/context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ async def _run_async_task(
6565
):
6666
"""
6767
This function is for internal use only.
68+
69+
This function is used to run an async task if it has context,
70+
which also sets and then resets its metadata.
6871
"""
6972
token = self._metadata_var.set(metadata)
7073
try:

0 commit comments

Comments
 (0)