MessageBus — A message queue that manages TUI notifications.
Supports multiple concurrent messages with auto-expiry.
Replaces the old @error_msg / @error_expires pattern.
Instance methods
current
Get the most recent non-expired message (displayed in the TUI)
Sourceerror(text :
String, duration :
Time::Span = 3.seconds)
Sourceinfo(text :
String, duration :
Time::Span = 2.seconds)
Sourcepush(text :
String, type :
MessageType, duration :
Time::Span = 2.seconds)
Push a new message onto the queue
Sourcesuccess(text :
String, duration :
Time::Span = 2.seconds)
Sourcewarning(text :
String, duration :
Time::Span = 3.seconds)
Source