Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimerCallback ¶
type TimerSupport ¶
type TimerSupport interface {
// HasTimer indicates if a timer already exists
HasTimer(repeating bool) bool
// CancelTimer cancels the existing timer
CancelTimer(repeating bool)
UpdateTimer(repeating bool)
// CreateTimer creates a timer, note: can only have one active timer at a time for an activity
CreateTimer(interval time.Duration, callback TimerCallback, repeating bool) error
}
TimerSupport is used to create a timer on behalf of the activity
func GetTimerSupport ¶
func GetTimerSupport(ctx activity.Context) (TimerSupport, bool)
GetTimerSupport for the activity
Click to show internal directories.
Click to hide internal directories.