Skip to content

Commit

Permalink
Fixed docs (to_thread/from_thread) for BlockingPortalProvider (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Oct 29, 2024
1 parent 3a62738 commit 4d3dd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/threads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ If you're building a synchronous API that needs to start a blocking portal on de
you might need a more efficient solution than just starting a blocking portal for each
call. To that end, you can use :class:`BlockingPortalProvider`::

from anyio.to_thread import BlockingPortalProvider
from anyio.from_thread import BlockingPortalProvider

class MyAPI:
def __init__(self, async_obj) -> None:
Expand Down

0 comments on commit 4d3dd26

Please sign in to comment.