Documentation
¶
Overview ¶
Package background runs work after an endpoint has responded.
Endpoints that mustn't reveal whether an account exists use it for the work only an existing account needs, such as creating an email link. The response then takes the same time either way, because what's left in it doesn't depend on the account.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("background: already closed")
ErrClosed is returned by Close if it was already called.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group runs functions in goroutines and waits for them on Close. The zero value isn't usable; call New.
func (*Group) Close ¶
Close stops accepting functions and waits for the running ones to return, until ctx is done.
Click to show internal directories.
Click to hide internal directories.