Skip to content

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

Closed

Description

@asvetlov
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']

    Activity

    1. asvetlov commented on Dec 7, 2017

      @asvetlov
      ContributorAuthor

      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.

    2. asvetlov commented on Dec 11, 2017

      @asvetlov
      ContributorAuthor

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

    3. changed the title [-]Add loop.current_task() and loop.all_tasks() methods[/-] [+]Add asyncio.current_task() and asyncio.all_tasks() funcitons[/+] on Dec 11, 2017
    4. asvetlov commented on Dec 16, 2017

      @asvetlov
      ContributorAuthor

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

    5. added
      stdlib
      on Dec 16, 2017
    6. added
      type-feature
      on Dec 16, 2017
    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)stdlibtopic-asynciotype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions