Skip to content

Feature request: Make EventSender Clone #1495

Description

@NickeZ

It would be nice if EventSender was Clone so that I could send one EventSender to a thread that accepts incoming connections and that I then can clone the EventSender when I create client handling threads.

My current workaround is to setup a channel from the main thread (that runs the SDL event loop) to the connection accepting thread and using a custom sdl event to request a new EventSender. It feels a bit convoluted. Is there a simpler way?

My app allows at most 1 connection at a time, so I prefer the easy approach of using std threads over async.

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