Documentation
¶
Overview ¶
Package openrun is the refusal a script set to run one at a time answers with (#1986): the open run a new run of the script collides with, the error that names it, and the words a skipped fire's reason and a refused run both use. It is its own package so pkg/script's public surface does not carry it; the store raises it and the tool and the portal read it.
Index ¶
Constants ¶
const BlockedMessage = "more than one run of this script is open, so it cannot be set to run one at a time yet; " +
"wait for them to finish or cancel all but one, then save again"
BlockedMessage is the refusal of a save turning exclusive on while more than one run of the script is open: the index would hold neither of them to the setting, so the save waits until at most one is.
Variables ¶
var ErrOpen = errors.New("another run of this script is still open")
ErrOpen marks a run refused because its script is exclusive and another of its runs is still open. The typed Error carrying the open run wraps it, so a caller matches on the sentinel and names the run from the rest.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Open Run
}
Error is one refused run of an exclusive script.