Module Toast.Queue

Toasts, held in order, the newest first, each until it is closed.

type t
val create : ?max_visible_toasts:int -> ?exit_duration_ms:float -> unit -> t

A queue of its own, for a Provider given it: at most max_visible_toasts shown, 3 by default, each closing toast kept for exit_duration_ms, 300 by default, as its exit plays.

val default : unit -> t

The queue show and every Provider use unless given another, made the first time it is asked for.