Skip to content

wait_*_event() -> Event functions should return Result instead of Option #1839

@phip1611

Description

@phip1611

It might be better to return Result rather than Option for wait_for_packet. I don't see a normal good case where it is okay to return None when we expect an event to be returned from that function.

This applies at least to:

  • wait_for_packet
  • wait_for_key_event
  • wait_for_input_event

Please investigate the usefullness before starting to implement.

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