类型 HoverCardDelays

API 文档由 Go 源码生成,内容为英文。

type HoverCardDelays struct {
	Open  time.Duration
	Close time.Duration
}

HoverCardDelays defines caller-selected delays. The application remains responsible for scheduling and cancelling deadline delivery.

方法

CloseDeadline#

func (delays HoverCardDelays) CloseDeadline(now time.Time) time.Time

CloseDeadline returns the earliest time at which a close transition may run.

OpenDeadline#

func (delays HoverCardDelays) OpenDeadline(now time.Time) time.Time

OpenDeadline returns the earliest time at which an open transition may run.