Skip to content

Instantly share code, notes, and snippets.

@hellysmile
Last active January 27, 2017 22:47
Show Gist options
  • Save hellysmile/54412a3154892bbd751679b2f68e9a94 to your computer and use it in GitHub Desktop.
Save hellysmile/54412a3154892bbd751679b2f68e9a94 to your computer and use it in GitHub Desktop.
import asyncio
from functools import partial
async def foo():
pass
print(asyncio.iscoroutinefunction(foo))
bar = partial(foo)
print(asyncio.iscoroutinefunction(bar))
@hellysmile
Copy link
Author

True
False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment