Skip to content
New issue

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

Add asyncio.current_task() and asyncio.all_tasks() funcitons #76431

Closed
asvetlov opened this issue Dec 7, 2017 · 3 comments
Closed

Add asyncio.current_task() and asyncio.all_tasks() funcitons #76431

asvetlov opened this issue Dec 7, 2017 · 3 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir topic-asyncio type-feature A feature request or enhancement

Comments

@asvetlov
Copy link
Contributor

asvetlov commented Dec 7, 2017

BPO 32250
Nosy @asvetlov, @1st1
PRs
  • bpo-32250: Implement loop.current_task() and loop.all_tasks() #4766
  • bpo-32250: Implement asyncio.current_task() and asyncio.all_tasks() #4799
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-12-16.19:59:57.583>
    created_at = <Date 2017-12-07.23:04:02.054>
    labels = ['3.7', 'type-feature', 'library', 'expert-asyncio']
    title = 'Add asyncio.current_task() and asyncio.all_tasks() funcitons'
    updated_at = <Date 2017-12-16.19:59:57.582>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2017-12-16.19:59:57.582>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-16.19:59:57.583>
    closer = 'asvetlov'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2017-12-07.23:04:02.054>
    creator = 'asvetlov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32250
    keywords = ['patch']
    message_count = 3.0
    messages = ['307826', '308056', '308480']
    nosy_count = 2.0
    nosy_names = ['asvetlov', 'yselivanov']
    pr_nums = ['4766', '4799']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32250'
    versions = ['Python 3.7']

    @asvetlov
    Copy link
    Contributor Author

    asvetlov commented Dec 7, 2017

    Existing Task.current_task() and Task.all_tasks() class methods are not overridable by custom event loop implementation.

    The proposal is adding new optional loop methods and using them by existing task methods.

    @asvetlov
    Copy link
    Contributor Author

    In #4766 discussion we decided to use module level functions instead of loop methods.

    @asvetlov asvetlov changed the title Add loop.current_task() and loop.all_tasks() methods Add asyncio.current_task() and asyncio.all_tasks() funcitons Dec 11, 2017
    @asvetlov
    Copy link
    Contributor Author

    New changeset 44d1a59 by Andrew Svetlov in branch 'master':
    bpo-32250: Implement asyncio.current_task() and asyncio.all_tasks() (bpo-4799)
    44d1a59

    @asvetlov asvetlov added the stdlib Python modules in the Lib dir label Dec 16, 2017
    @asvetlov asvetlov added the type-feature A feature request or enhancement label Dec 16, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life stdlib Python modules in the Lib dir topic-asyncio type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant