Skip to content

Expose lori's one-shot timer API to mare users #35

Description

@SeanTAllen

Lori 0.12.0 added a general-purpose one-shot timer via set_timer() on TCPConnection and _on_timer(token: TimerToken) on ServerLifecycleEventReceiver. Mare currently stubs _on_timer as a no-op and doesn't expose this to users.

Exposing it would involve:

  • Adding a set_timer() method on WebSocketServer that forwards to _tcp_connection
  • Adding an on_timer callback to WebSocketLifecycleEventReceiver
  • Deciding whether _on_timer should route through the state machine or go directly to the user callback

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions