Skip to content
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

Allow import CURRENT_ENTRYPOINT and StrictContextVar #188

Merged
merged 2 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions aiomisc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from . import io, log
from ._context_vars import StrictContextVar
from .aggregate import aggregate, aggregate_async
from .backoff import asyncbackoff, asyncretry
from .circuit_breaker import CircuitBreaker, CircuitBroken, cutout
Expand Down Expand Up @@ -48,6 +49,7 @@
"StrategyException",
"StrategySkip",
"StrategyStop",
"StrictContextVar",
"ThreadPoolExecutor",
"WorkerPool",
"__version__",
Expand Down
2 changes: 1 addition & 1 deletion aiomisc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def awaitable(
awaitable object. In case than a function returns a future,
the original future will be returned. In case then the function
returns a coroutine, the original coroutine will be returned.
In case than function returns non-awaitable object, it's will
In case than function returns non-awaitable object, it will
be wrapped to a new coroutine which just returns this object.
It's useful when you don't want to check function result before
use it in ``await`` expression.
Expand Down