We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After adding sleep_after / sleep_before in #750 we need a way to sleep asynchronously
sleep_after
sleep_before
Example from this convo: pallets/click#85 (comment)
import asyncio from functools import wraps def coro(f): @wraps(f) def wrapper(*args, **kwargs): return asyncio.run(f(*args, **kwargs)) return wrapper
Usage:
@click.command() @coro async def command(): await asyncio.sleep(1) click.echo("Delayed hello")
The text was updated successfully, but these errors were encountered:
tony
No branches or pull requests
After adding
sleep_after
/sleep_before
in #750 we need a way to sleep asynchronouslyExample from this convo: pallets/click#85 (comment)
Usage:
The text was updated successfully, but these errors were encountered: