Skip to content

Duplicate iscoroutinefunction/is_coroutine_function function #4482

@jakirkham

Description

@jakirkham

Appears we define this same function with slightly different names twice. If we need the two names, maybe one can be an alias. Otherwise maybe we drop one

def is_coroutine_function(f):
return asyncio.iscoroutinefunction(f) or gen.is_coroutine_function(f)

def iscoroutinefunction(f):
return inspect.iscoroutinefunction(f) or gen.is_coroutine_function(f)

cc @ian-r-rose @mrocklin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions