Skip to content

User event handling with the trait approach #1

Open
@kchibisov

Description

@kchibisov

Generally one may use an associated type or generic on the event loop, but it'll make API a bit complex and more prone to not being object safe, since the intention is to rely on &dyn T a lot.

I think what we can do is to develop an interface to Wakeup the event loop and then just notify that the loop got woken up, then the users can drain their sources of user events, like channels, Mutex<Vec>, etc.

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