Skip to content

Be aware of asyncio.create_task() using weak references #6475

Open
@dhalbert

Description

@dhalbert

User Erlend in discord pointed out that CPython cautions that asyncio.create_task() keeps only a weak reference to the created task. MicroPython/CircuitPython does not implement weak references, so we are safe from that. However, we should write our examples and library code to work on CPython as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    asyncasyncio related

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions