Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorOrFinish1 ¶
func ErrorOrFinish1(ctx context.Context, c <-chan error) error
func ErrorOrFinish2 ¶
func ErrorOrFinish2(ctx context.Context, c1, c2 <-chan error) error
func ExecuteAsync ¶
func ExecuteAsync(f func() error) <-chan error
ExecuteAsync executes a function asychrously and return its result.
Types ¶
type ActivityTimer ¶
type ActivityTimer struct {
// contains filtered or unexported fields
}
func CancelAfterInactivity ¶
func CancelAfterInactivity(ctx context.Context, timeout time.Duration) (context.Context, *ActivityTimer)
func (*ActivityTimer) SetTimeout ¶
func (t *ActivityTimer) SetTimeout(timeout time.Duration)
type ActivityUpdater ¶
type ActivityUpdater interface {
Update()
}
Click to show internal directories.
Click to hide internal directories.