Skip to content

Timers need to work in 1:1 mode #10925

Closed
@alexcrichton

Description

@alexcrichton

Right now they're heavily based on channels in M:N mode, and this does not easily work at all in 1:1 mode. These abstractions either need to be completely redesigned in order to support being able to work in 1:1 and M:N mode, or they need to get a reasonable implementation in 1:1 mode.

The current best idea that I have for this is to have a global "worker thread" which is an "event loop" for timers and signals. Also remember that whatever design is settled on must have a solution for all platforms.

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