Python Programming - Decorators - Discussion
Discussion Forum : Decorators - General Questions (Q.No. 30)
30.
How does the
@contextlib.asynccontextmanager
decorator differ from @contextlib.contextmanager
?
Answer: Option
Explanation:
@contextlib.asynccontextmanager
is specifically designed for creating asynchronous context managers, allowing the use of the 'async with' statement.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers