Skip to content

Commit

Permalink
docs: update Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed May 15, 2023
1 parent 4fa6912 commit 2e8f285
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python_boilerplate/common/asynchronization.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def async_function(func: Callable[..., R]) -> Callable[..., Future[R]]:
* a function that accepts one integer argument:
>>> @async_function
>>> def an_async_function(a_int: int):
>>> def an_async_function(a_int: int) -> None:
>>> pass
* a function without argument:
>>> @async_function
>>> def an_async_function():
>>> def an_async_function() -> None:
>>> pass
https://stackoverflow.com/questions/37203950/decorator-for-extra-thread
Expand Down Expand Up @@ -97,12 +97,12 @@ def async_function_wrapper(func: Callable[..., Any]) -> Callable[..., Task[Any]]
* a function that accepts one integer argument:
>>> @async_function_wrapper
>>> async def an_async_function(a_int: int):
>>> async def an_async_function(a_int: int) -> None:
>>> pass
* a function without argument:
>>> @async_function_wrapper
>>> async def an_async_function():
>>> async def an_async_function() -> None:
>>> pass
:param func: a sync function to run in thread pool
Expand Down

0 comments on commit 2e8f285

Please sign in to comment.