Documentation
¶
Overview ¶
Package dialogqueue orders the requests one shell dialog surface serves: one shows at a time, and the rest wait their turn in arrival order instead of cancelling the one showing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is one surface's requests. Loop goroutine only.
func (*Queue) Dismiss ¶
Dismiss drops a waiting request for handle, answering it cancelled; it reports whether handle is instead the one showing, which the caller takes down (and then calls Done).
func (*Queue) Done ¶
func (q *Queue) Done()
Done marks the showing request answered and shows the next one.
func (*Queue) Enqueue ¶
Enqueue shows the request for handle at once when nothing shows, else queues it: start shows it, cancel answers it cancelled without showing it (when it is dismissed while waiting).