Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecate using a generator as an event handler #2721

@mhsmith

Description

@mhsmith

Toga currently supports using a generator as an event handler, which can sleep by yielding an int or float which is interpreted as a number of seconds. Although this is used in a few of the example apps, it isn't documented anywhere apart from an incidental mention in the release notes, and is redundant with the much more capable asyncio API.

Previous discussion: #2099 (comment).

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