Ratatouille v0.5.1 Ratatouille.EventManager View Source

A wrapper of ExTermbox.EventManager so that Ratatouille applications don't need to use or depend on ex_termbox directly.

Link to this section Summary

Functions

Provides a child specification to use when starting the event manager under a supervisor.

Stops the event manager server.

Subscribes the given pid to future event notifications.

Link to this section Functions

Provides a child specification to use when starting the event manager under a supervisor.

Link to this function

start_link(opts \\ [])

View Source
start_link(Keyword.t()) :: GenServer.on_start()

Starts the ExTermbox.EventManager gen_server.

Stops the event manager server.

Link to this function

subscribe(pid \\ __MODULE__, subscriber_pid)

View Source

Subscribes the given pid to future event notifications.