mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-12-02 06:24:03 +03:00
18 lines
557 B
ReStructuredText
18 lines
557 B
ReStructuredText
.. _async-injections:
|
|
|
|
Asynchronous injections
|
|
=======================
|
|
|
|
.. meta::
|
|
:keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Providers,Async,Injections,Asynchronous,Await,
|
|
Asyncio
|
|
:description: Dependency Injector providers support asynchronous injections. This page
|
|
demonstrates how make asynchronous dependency injections in Python.
|
|
|
|
Providers support asynchronous injections.
|
|
|
|
.. literalinclude:: ../../examples/providers/async.py
|
|
:language: python
|
|
:emphasize-lines: 26-29
|
|
:lines: 3-
|